Setting a page link in the footer?

What may be easier (if you don’t necessarily want all the same menu items to appear in the footer) is to: Create a new menu, “Footer Menu” for example Add-in whatever links (pages) are needed there Add a widget (called Custom Menu) to a footer widget position (if your current theme supports it). Let me … Read more

Print string to footer using wp_footer option

Do you have to use a variable for you script? I have done this in the past and has worked… // add script to the footer and break out of PHP function slider_option(){ ?> <script>script function data</script> <?php } ?> add_action(‘wp_footer’,’slider_option’); If this does not work make sure you have the footer hook in you … Read more

Change directory where get_header(), get_footer() and get_sidebar() look for templates

Simple solution, use get_template_part(). For example: get_template_part( ‘partials/footer’ ); Which would get the footer.php inside the partials/ directory. Another example: get_template_part( ‘partials/footer’, ‘home’ ); Which would get the footer-home.php inside the partials/ directory. One more example: get_template_part( ‘partials/footer/blog’ ); Which would get the blog.php inside the partials/footer/ directory.

Template part vs Sidebar (differences)

The get_sidebar($name); function loads sidebar template file sidebar-{$name}.php if no name in the prentacies is specified it loads the sidebar.php file. get_sidebar() and get_template_part() are almost identical, at the end they call locate_template() function that take care of loading from files. The only difference is the hook fired. If you use get_sidebar() for all your … Read more

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