Home page letters
It can be done by css.Try with .home class. **For example: Theme Used:** Basic CSS code .home .top-menu li a, .top-menu li span { text-transform: uppercase; } Hope this will helps you.
It can be done by css.Try with .home class. **For example: Theme Used:** Basic CSS code .home .top-menu li a, .top-menu li span { text-transform: uppercase; } Hope this will helps you.
Your include path is incorrect. You have: require_once( dirname(__FILE__) . ‘../../../../global_functions.php’); When it should be: require_once( dirname(__FILE__) . ‘../../../../functions/global_functions.php’); The other alternative would be to change your setup from individual standalone installations of WordPress to WordPress Multi-site. You would then have a couple of options: Option #1 being a Must-Use Plugin. Option #2 being a … Read more
I assume the code you added to functions.php is a filter for ‘the_password_form’, where you’ve got something like: function my_protected_post_form () { $myCustomizedFormCode=”<form action=….” return $myCustomizedFormCode; } add_filter (‘the_password_form’, ‘my_protected_post_form’); So where you have the instructions to the user in that custom form code string, you just need some simple HTML to provide the link … Read more
Yes, there are a couple of ways you can do this. One is by creating a filter in the functions.php file, like what is done here: https://stackoverflow.com/questions/10468697/how-to-add-a-class-to-a-html-element-using-filters-in-wordpress The other would be to use Javascript/jQuery to add classes to all the headers post load. Using the php variant would be more elegant, though.
I think your scope is not the same. You are defining the $menu_name in one scope and calling it in another scope. So you can do it with global variable like below- $GLOBALS[ ‘menu_name’ ] = ‘Section 1 Menu’; And call it like- <div id=”nav”> <div class=”close-menu”></div> <?php wp_nav_menu( array( ‘menu’ => $GLOBALS[ ‘menu_name’ ], … Read more
Best luck while you learn. $fivesdrafts = $wpdb->get_results( ” SELECT ID, post_title FROM $wpdb->posts WHERE post_status=”draft” AND post_author = 5 ” ); foreach ( $fivesdrafts as $fivesdraft ) { echo $fivesdraft->post_title; } This example has been sponsored by WordPress codex. In your case $wpdb->get_results( Should become like: $variable_to_print = $wpdb->get_results(
Because you are operating on the current (logged in) user – you need to accept parameters in your callback so that you can operate on the user whose role is being set: rb_update_user_role( $user_id, $role ) { // error_log( “Setting user $user_id to role $role” ); if ( $role !== ‘s2member_level0’ && $role !== ‘s2member_level1’ … Read more
This was fixed by using plugin_dir_url.
Some code is added automatically to my site’s header – what is it?
Based on your comments, I don’t think the MyAjax variable is being localized using wp_localize_script(). In your case, you’ll most likely need something like the following: wp_localize_script( ‘script’, ‘MyAjax’, array( ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ), ) ); That said, I don’t really have enough information to provide a more detailed answer. EDIT: This and the … Read more