ajcke
Forum Replies Created
-
Forum: Hacks
In reply to: Display Page Parent in MenuThanks. I’m able to display the parent name in the h2 tag now. I left out php before echo.
Parent
——–Child
—————-childChildThis code only displays the immediate parent. For instance if a user goes to childChild only child and childChild display in the list. Is there a way to keep the parent in the list when childChild is selected?
I’m still not able to solve issue 2 above.
My goal is to achieve a menu like this: https://www.n-union.k12.oh.us/About.aspx. This site basically has 4 menus – District and one for each school. The menu only displays the childchild menus if a page in that ul is selected.
Forum: Themes and Templates
In reply to: [Max Magazine] Slider Nav CSSI know but I just wanted to edit a few settings before I went any further with the theme.
Forum: Themes and Templates
In reply to: [Max Magazine] Slider Nav CSSI just installed the theme so it’s using the theme’s default css file.
Forum: Plugins
In reply to: [WP Parallax Content Slider] Feature RequestThanks! That’s great!
Forum: Networking WordPress
In reply to: Email All Site AdminsI tried the first code on wplifeguard’s site and it works. Any idea to why the alert based on user level does not work (code above)?
Forum: Networking WordPress
In reply to: Email All Site AdminsI added a file called admin_alert.php to my mu-plugins directory and put the following code in it. When I refresh the site page the page displays white in FF and I get an unknown server error in Chrome.
<?php if (current_user_can('administrator')) { function addDashboardAlert() { ?> <script type="text/javascript"> $j = jQuery; $j().ready(function(){ $j('.wrap > h2').parent().prev().after('<div class="update-nag">This is a test alert for admins only. Do with it what you want.</div>'); }); </script> <?php } add_action('admin_head','addDashboardAlert'); } ?>
Forum: Networking WordPress
In reply to: Email All Site AdminsI’ve never created my own file for the mu-plugins folder before. Can I create a file called whatever.php and place a code solution from https://wplifeguard.com/how-to-add-custom-alerts-to-a-wordpress-dashboard/?
Forum: Networking WordPress
In reply to: Email All Site AdminsThanks! The custom alerts says it’s multisite capable, but the code provided says to add to the theme’s function file. Am I missing something? I haven’t found any plugins for this.
With my WordPress multisite I need to be able to alert subsite admins with updates and changes.