Browse Source

functions

David Windham 1 month ago
parent
commit
86d06e0099
1 changed files with 23 additions and 1 deletions
  1. 23 1
      functions.php

+ 23 - 1
functions.php

@@ -1,5 +1,9 @@
 <?php 
 
+/***********************************************************
+###################### Child Theme #########################
+************************************************************/
+
 add_action( 'wp_enqueue_scripts', 'twenty_five_enqueue_styles' );
 function twenty_five_enqueue_styles() {
 	wp_enqueue_style( 
@@ -8,6 +12,11 @@ function twenty_five_enqueue_styles() {
 	);
 }
 
+
+/***********************************************************
+###################### Admin Clean #########################
+************************************************************/
+
 add_filter('gettext', 'srh25_change_howdy', 10, 3);
 function srh25_change_howdy($translated, $text, $domain) {
     if (false !== strpos($translated, 'Howdy,'))
@@ -70,6 +79,11 @@ function srh25_remove_admin_footer_text(){return '';}
 add_filter('update_footer', 'srh25_remove_admin_footer_upgrade', 1000);
 function srh25_remove_admin_footer_upgrade(){return '';}
 
+
+/***********************************************************
+###################### Log In/Out ##########################
+************************************************************/
+
 add_filter( 'login_headerurl', 'srh25_login_logo_url' );
 function srh25_login_logo_url() {
     return home_url();
@@ -104,7 +118,10 @@ function srh25_login_logo() { ?>
 <?php }
 
 
-// Allow SVG
+/***********************************************************
+####################### Allow SVG ##########################
+************************************************************/
+
 add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
 
   global $wp_version;
@@ -138,6 +155,11 @@ function fix_svg() {
         </style>';
 }
   
+
+/***********************************************************
+#################### Edit Page Link ########################
+************************************************************/
+
 function add_edit_link() {
   ob_start();
   edit_post_link( __( 'Edit Page', 'textdomain' ), '<div class="wp-block-button">', '</div>', null, 'wp-block-button__link has-accent-2-background-color has-background wp-element-button' );