Custom functions for string data calculations
Hmm…i might be getting you wrong, but do you know that WP comes with an AJAX callback framework that helps you with this, making calling your own callback file unneccessary?
Hmm…i might be getting you wrong, but do you know that WP comes with an AJAX callback framework that helps you with this, making calling your own callback file unneccessary?
The lines you mention are most likely part of your theme. You will need to either: figure out which functions/templates output them and if they have hooks to use; edit theme (create child theme) to add your own function to output what you want.
The implementation of menu items depends on your theme. For newer or well maintained and updated theme it is usually implementation of Custom Menus feature. For the rest it could be anything from auto-generated list of pages to custom theme settings page in admin.
Filter the get_theme_mod() function (wp-includes/theme.php): add_filter( ‘theme_mod_header_image’, ‘localized_header’ ); function localized_header( $img ) { // Do something awesome with the $img path. return $img; }
I’m not sure what plus sign you mean. Could you add a screen shot? Adding item to a menu needs two action: 1. Mark the checkbox, 2. Click Add to Menu. View full size If you have trouble on the widget page, try to activate the accessibility mode available in the screen options.
Is this all you need? You’re header is already using this function for the meta-desc, but maybe you’re homepage is different than your blog main archive. <?php if (is_front_page()) { ?> <meta name=”description” content=”I’ll take swords for 200.” /> <?php } ?> Use is_home() for the blog main archive.
Since you are using apply_filters you can use yourtheme_header_image_height filter hook to change the height: add_filter(‘yourtheme_header_image_height’,’dynamic_height’); function dynamic_height($height){ $custom_height = get_option(‘dynamic_header_height’); return $custom_height; }
I got your problem. You are facing problem how and where to write the code for footer. Below are some guide line it may help or give you some basic idea. First of you have to create footer.php template, if not created. Your tag should be closed in footer.php What ever code or div, links, … Read more
Check out the documentation for wp_title(), as there are several things you can do to format it how you want. Using the following code will remove the double arrows in the title: <title><?php bloginfo(‘name’); ?> <?php wp_title(“”,true); ?></title>
I figured out what the problem was. In the end, I added &noheader=true to my form action. This allowed me to submit my own headers without calling the WP admin headers.