Articles of footer

Output column number according to active sidebars

$sidebars = array( is_active_sidebar( ‘footer-4’ ), is_active_sidebar( ‘footer-3’ ), is_active_sidebar( ‘footer-2’ ), is_active_sidebar( ‘footer-1’ ), ); $col = 0; foreach ( $sidebars as $sidebar ) { if ( $sidebar ) { $col++; } } echo ‘col-‘.$col.”; What i am trying to accomplish is have the correct number of WordPress active sidebars outputted. So that they […]

My wordpress site is using local ip to point to jquery and other files, how to fix it?

I installed WP on my Raspberry Pi using this guide : I did not do the last part about permalinks yet. Problem is, when I navigate to my site using my local network, all works well, then I try from the internet, and it takes ages and only shows text, no styles etc. found […]

Add footer widgets

My website is running on WordPress theme which does not have options to add footer widgets. How can I add it using other ways?

get_header() in backend – but keep JavaScript and CSS files

I replaced the header and footer in the backend with those from the frontend by the following code: /* add header to backend */ function header_backend() { get_header(); } add_filter(‘in_admin_header’, ‘header_backend’); /* add footer to backend */ function footer_backend() { get_footer(); } add_filter(‘admin_footer_text’, ‘footer_backend’); But this obviously deactivated or removed the *.js and *.css files […]

How do I properly code my footer? See example

I would like to code this footer code: <p class=”mh-copyright”><?php printf(esc_html__(‘Copyright &copy; %1$s | Made by %2$s’, ‘mh-magazine-lite’), date(“Y”), ‘<a href=”‘ . esc_url(‘’) . ‘” rel=”nofollow”>Dev</a>’); ?></p> So my footer will look something like this (plus Terms of Use and Privacy Policy has hyperlink with “_blank” target in them): Copyright © 2016 | Made by […]

How to make footer area transparent? Using Avada and WordPress

For the homepage, I’d like the main page background to be the background for the entire page, including the footer. Please help!? Reed

Template part vs Sidebar (differences)

I want to add a hard coded footer into the… footer.php of my site. This doesn’t need to be “dynamic” (adding and removing widgets), it will be something standard like info about the site and specific links. If I am correct this can be done either by get_template_part( ‘template-parts/’, ‘infofooter’ ); or by get_sidebar( ‘infofooter’ […]

Check from functions.php if function exists in footer.php

I am trying to secure the copyrights links from footer.php file and I want to create a function in footer php which will have those links and then I want to check from functions.php if that function exists in the footer and in case it doesn’t I would like to show an exit(); function. I […]

Return get_header and get_footer string instead of echo it

I am trying to use mustache within a wordpress application and modularize it. I would like to use mustache partials to inject the header and footer string into individual template files. However, as soon as I call get_header / get_footer on the controller layer, the header and footer are echo’ed out immediately. What I am trying […]

making a plugin that moves other plugins wp_head actions to wp_footer

I am grappling with implimenting jQm on wordpress and have hit the obstacle that most plugins dont work on jQm ajax loaded pages. However, taking the example of the sharethis plugin, I have found that it will run on the ajax loaded page if I change this add_action(‘wp_head’, ‘st_widget_head’); to this add_action(‘wp_footer’, ‘st_widget_head’); in the […]