The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
25 views

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

I'm creating my own theme framework, and I want to organize my code, separating the partials files from the pages. But I want to do that and still use the native functions get_header(), get_footer() ...
0
votes
1answer
23 views

Google Analytics tracking code on just one page?

Having an issue where I have a client who wants his Google Analytics code on just one page. I'm using the following is_page code but in the footer.php of my child theme, but it's not appearing on the ...
-1
votes
0answers
19 views

Footer Floating in WooCommerce Plugin Pages (not on my theme pages)

I've been searching all over for this exact topic, but only find variations that don't apply to me. I have a woocommerce site within a theme but the footer is floating up on only the woo commerce ...
0
votes
2answers
25 views

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' ...
0
votes
2answers
44 views

Add JavaScript in footer if shortcode used in page [duplicate]

I want to add javascript to page footer if the shortcode is used into the page content. add_shortcode('show-popup', 'show_aip_popup'); function show_aip_popup($args){ // HTML Comes here for ...
0
votes
2answers
43 views

My add_action (wp_footer, 'method') is not calling?

In my themes functions.php file I have put: add_action('wp_footer', 'method'); function method() { echo "this is being called"; die(); } My wordpress footer.php file looks like this: <?php ...
0
votes
1answer
37 views

WordPress Get Header and Footer using in Admin Area

I was wanting a way to get the site header and footer and use it in the admin area. Idea #1 An answer to another related question states to use an iframe instead I think we can use an ajax call get ...
0
votes
2answers
92 views

how to remove default jquery and add js in footer?

I want to remove default jQuery, because I am adding new or latest jQuery. Also I want include some js in my footer. How can I do that? I want to add another different js like a slider js or css in ...
0
votes
1answer
25 views

wp_footer hook not working inside a class if not single

I putted a function inside a class and then called it using add_action and the wp_footer hook, like shown below. class mwdes_general { public function __construct() { add_action( 'wp_footer', ...
3
votes
1answer
59 views

Wp_head and wp_footer vs wp_enqueue_script javascript files?

I'm converting a bootstrap html website into Wordpress. Now, all recommend using wp_enqueue_script() for registering javascript files. i.e. function themeslug_enqueue_script() { ...
1
vote
2answers
91 views

Problem in loading javascript in footer

I have written a small plugin where i have loaded following scripts wp_enqueue_script('jquery', plugins_url('/js/jquery.min.js', __FILE__),'','1.7',true); wp_enqueue_script('new-cycle', ...
1
vote
1answer
120 views

How to load css in the footer [duplicate]

I was trying to move the load of my style.css in the footer of my wordpress theme. I have already done something similar with 2 js files and it works fine, they load in the footer: function my_init() ...
0
votes
1answer
33 views

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 : https://www.raspberrypi.org/documentation/usage/wordpress/ I did not do the last part about permalinks yet. Problem is, when I navigate to my ...
0
votes
1answer
51 views

Footer doesn't display in page.php

So I'm trying to integrate static HTML/CSS/JS into WordPress and everything goes really well, but now I realised that my footer isn't displaying in my individual static pages (page.php). But I can see ...
1
vote
1answer
29 views

Why would this IF statement not work? [closed]

I've placed the following conditional statement in my footer.php file but it isn't working. I want it to show the footer on every page except for single.php and the services.php template: <?php if ...
0
votes
1answer
38 views

Meta Slider Lite plugin shortcode in post not working

I'm trying to implement a slider in my Wordpress post. For this I'm using Meta Slider plugin. When I've added a slider, I should be able to use the shortcode in my posts ([metaslider id=21]). If I add ...
0
votes
0answers
71 views

get_footer doesn't work in single.php

I have a very very simple single.php. When I call get_header and get_sidebar, they work, but get_footer doesn't. I don't have any footer when I click on a post, It's kinda frustrating, since I can't ...
0
votes
0answers
40 views

How to add navigation in footer like StackExchange?

I want to add more number of navigation menu in footer area, how to do this? For example: There are four columns. Each columns has headings. Each heading has three navigation links. First column ...
0
votes
0answers
59 views

Action wp_footer with priority 1 is after wp_print_footer_scripts

In my Wordpress 4.1 instance I found a strange thing. The wp_footer action print_script with priority 1 is executed after wp_print_footer_scripts which has priority 20. add_action( 'wp_footer', ...
0
votes
1answer
2k views

Move all the JS files to the bottom|footer, the right way

In order to speedup my site load and prevent scripts from render the page I'm trying to move all the possible scripts (meaning JS files) from head to footer. After read and do some research I made ...
0
votes
0answers
23 views

add_filter and tag of footer post

I need to tag of post footer in add_filter() function, For example : add_filter( 'the_content', 'vmp_add_voting_links' ); I have the above code in a plugin and i want to replace the_content tag ...
0
votes
0answers
44 views

edit_post_link and how to provide link

I need to upload EBUP of each post and as post footer that link to its EPUB. At first i put the followiang code and i can show EBUB link in each post: <?php edit_post_link( __( 'EPUB', ...
1
vote
2answers
82 views

Create a page template with No Footer

I want to create a page template that doesn't use footer. Removing get_footer() will not work in this case. Because my theme adds the stylesheets and scrtipts after the footer (before /body) and if I ...
0
votes
1answer
319 views

Place google maps in the footer/before footer

I am working on this website: www.sandatasolutions.com, the website is made in wordpress. I have a google maps code and I want to embed it just above the footer. and make it fit to the whole right ...
0
votes
1answer
156 views

Change location of header.php and footer.php

I wish to organize the my themes directory a little more. Is it possible to move header.php and footer.php to a sub directory? I guess it's done by hooking on to some action, but is it possible with ...
0
votes
0answers
52 views

Sticky/constant footer

I am using a twenty fourteen child theme for a static, 5-page site - no posts. As it stands, the footer is down at the bottom of each page, and is only visible when the user scrolls down to the end. ...
0
votes
1answer
93 views

With over a page of content the footer remains where the bottom of the screen was at top scroll

I've been building an artist website to promote my music and I've ran into an obstacle with my footer. What I want is very simple (or so it would seem). I'm trying to create a footer that sits under ...
0
votes
0answers
175 views

Fully editable footer

I'm making a theme from scratch and I want to add a footer with editable stuff like copyright / social network / About author excerpt / some link. I looked around on google but I find answer who say ...
-1
votes
2answers
41 views

How do I change the footer (Norma) [closed]

I'm a total novice and this is my first experience with wordpress. I have some basic knowledge of HTML but that's about it. I need to change the the address information that we have set up in the ...
0
votes
1answer
108 views

Move jquery ui to footer

Am trying to move //ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js to the footer, i have used a function to do this but the results was to duplicate the js libray, one to header and ...
0
votes
1answer
41 views

Adding text to the footer of each post based on tags or categories

Several of my posts in the same category have the same footer. I figured it would be much more maintainable if I could move this into a separate location and manage it from a central place. How can ...
0
votes
2answers
413 views

Add content to footer - above wp_footer

I know there are several questions about the footer, but I did not find answer to this. If this has been asked before, my apologies. I am developing a widget plugin and I wanted to give users the ...
1
vote
1answer
235 views

Overwrite or Replace code in WP_Footer

I have a some code being dynamically added into my Footer via add_action('wp_footer' ...). Unfortunately I'm not sure how to remove it using conventional methods, I've looked at the following question ...
0
votes
1answer
1k views

Using wp_register_style to load CSS in footer?

I realise you can enqueue JS in the footer using wp_register_script as there is a $in_footer parameter for doing so. However, there isn't one for wp_register_style it seems. Is there a way to enqueue ...
0
votes
1answer
72 views

Add Different Actions To Different Page's wp_footer

I am trying to add functions to wp_footer based on the the page id. I am hooking my callback to init, but its not working. Here is what I am using. function fl_template_loader() { if ( is_page( ...
0
votes
3answers
632 views

How do I enqueue a JavaScript in my footer via the functions.php file?

Okay, so I'm well familiar with the way to properly enqueue a stylesheet or JavaScript in the WordPress header via the functions.php file. Recently though I came across a situation that has me ...
1
vote
1answer
201 views

How to remove version and thank you message from the admin footer

I've used following codes and no luck 1 //Hide admin footer from admin function change_footer_admin () { return ' '; } add_filter('admin_footer_text', 'change_footer_admin', 9999); function ...
-1
votes
1answer
23 views

Re-position footer and force it to drop below blog post excerpts on home page [closed]

Site is under construction using a customized blank theme On my blog page, the footer cuts across the blog posts and it appears my footer is at an absolute position since it is at exactly the same ...
0
votes
0answers
178 views

wp_footer hook only working on homepage not in other pages

I try to output a javascript code in wp_footer hook but it is not printed in all pages it is working in home page only. I have checked for the presence of wp_footer(); function in footer.php it is ...
0
votes
3answers
505 views

How to detect and move all inline styles to the footer?

For some reasons, I need a function to detect all inline styles generated by theme options or plugins and move them to the footer and convert this snippet into a small plugin. Basically I need that ...
2
votes
1answer
301 views

Strip HTML comments from plugins in header/footer

Would anyone know a function or how to remove <!-- plugin inserted stuff--> from the header and footer so that they won't be visible when viewing source?
0
votes
1answer
31 views

Call Shortcode on wp_footer

Is it possible to call shortcode outside of post/ page content area? I am trying to add it to wp_footer with the following codes but it's returning string: add_shortcode('eps_pop', 'init'); function ...
0
votes
3answers
77 views

How to use wp_footer() on a 404 page?

I am designing my 404 error page, for which I created a separate header and of course I need a separate footer. As for the latter, instead of creating a new one, would be enough for me to ensure ...
0
votes
2answers
241 views

Print string to footer using wp_footer option

add_action('wp_footer','slider_option'); function slider_option() { $option ="<script>script function data </script>"; echo $option; } I want to print or ...
0
votes
1answer
49 views

Conditional statements based on custom meta value in category archives

Here's what I need to do. Insert a short Javascript in the footer using wp_footer. No problem there for single posts, I have this. add_action( 'wp_footer', 'prefix_wpfooter' ); function ...
-1
votes
1answer
101 views

TwentyThirteen - Footer overlapping content [closed]

So, I'm designing a theme for a friend of mine, but there is a problem with the footer. Assuming the very bottom of the browser window is 1000px, it seems that the page content ends at 1000px, and ...
6
votes
2answers
459 views

Auto get_header and get_footer on every template?

Is there a way to automatically run get_header() at the beginning of template and get_footer() at the end of it? Currently my code is too repetitive with those calls. I've been looking for a way to ...
-1
votes
2answers
1k views

How to create a custom image gallery in the footer?

I need to add sponsor images, thumbnails, in the footer of a Wordpress website. I'd like the possibility to just upload images through the native Wordpress media gallery and then having a way to ...
0
votes
2answers
636 views

Share buttons on article footer

for a website I need to place facebook and twitter share buttons on the footer section of each article on the blog page (where are listed all the articles). I tested many social plugin and was able ...
0
votes
1answer
79 views

Action inside another action not working

I am trying to load content before the end body tag on admin pages that have a TinyMCE editor on them. To do this I am trying to leverage two action hooks 'before_wp_tiny_mce' and 'admin_footer' but ...