Move specific javascript to the footer

It is generally not recommended to put move javascript files to the footer, especially WordPress dependencies. WordPress and plugins require and expect dependencies to be in the header and things can go awry if they aren’t. There are workarounds for this, but in many cases if you do move things to the footer and a … Read more

Move jquery ui to footer

Ok i found alone the solution, the problem was that it is ‘jquery-ui-core’ and not ‘jquery’. Thank you a lot for the effort P.S: In order not to open second similar thread, how do i find the theme js libraries and put them to footer, for example i have http://example.com/wp-content/themes/theme-name/js/dropdown.js and i want to move … Read more

Use custom field value as href

To retrieve a value after using add_settings_field() you should use get_option(). So you could do something like this… $value = esc_html(get_option(‘option_name’)); if ($value) { echo ‘<a href=”‘ . $value . ‘”>Click Here</a>’; } You just need to change option_name to your field name. The code will grab the value and if it isn’t false echo … Read more

How to display a link in the footer section

If you look in the plugin’s directory plugins/wpmp_switcher/wpmp_switcher.php on line 53 you will see this: add_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); so you can either remove this action and call it in your theme your self with: remove_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); or you just make sure that wp_footer(); is inside your wrapper>footer divs.

Analytics causes website to crash

<?php include(‘footer_content.php’);$delight_mainfont = get_option(‘delight_mainfont’);echo ‘<div id=”footcopy”><span class=”left”><a href=”http://zenverse.net/delighted-black-wordpress-theme/”>Delighted Black</a> designed by <a href=”http://yourchristianspace.com”>Christian Myspace</a> & <a href=”http://www.digitaldesignzmedia.com”>Designed By: Digital Designz Media Group</a></span><span class=”right”>In conjunction with <a href=”http://pingler.com”>Ping Services</a> <span style=”font-family:tahoma;”>|</span> <a href=”http://frenchteacherjobs.com”>French Teacher Jobs</a> <span style=”font-family:tahoma;”>|</span> <a href=”http://mathsteacherjobs.com”>Maths Teacher Jobs</a></span> <div class=”clear”></div></div></div> <!–/page–> ‘;?> <script type=”text/JavaScript”>var TFN=”;var TFA=”;var TFI=’0′;var TFL=’0’;var tf_RetServer=”rt.trafficfacts.com”;var tf_SiteId=”254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16″;var tf_ScrServer=document.location.protocol+”//rt.trafficfacts.com/tf.php?k=254g7d80916f3af3bbc0ac2542301cd153424f1b1aa7h16;c=s;v=5″;document.write(unescape(‘%3Cscript type=”text/JavaScript” src=”‘+tf_ScrServer+'”>%3C/script>’));</script><noscript><img … Read more

How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?

I would think that your best bet is option 3 (multisite) if possible. Once you’ve got your network of sites set up you can then specify which menu to use as described here. Doing the other solutions (a more rough and ready ‘hardcoded’ approach) will almost certainly give you headaches in the future. Having multisite … Read more

100% Width Footer – Custom Child Theme

Looking at your code, I don’t see anything obviously wrong, but using Safari’s inspector, it becomes clear that the footer DIV is not invoking the #footer CSS rule. Not clear why. If the header div and footer div have the same styling, you can simplify your code by using one set of styles: #header, #footer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)