The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
22 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
35 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
34 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 ...
-2
votes
0answers
8 views

Control marquee behaviour [migrated]

I've using marquee to show my bookmark links in footer but I've two problem with that: Speed is to fast. When I scroll mouse up of the links the marquee would not pause and keeps moving. How ...
0
votes
1answer
30 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
58 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
23 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
47 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
72 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
79 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
28 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
39 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
28 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
31 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
57 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
36 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
49 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
1k 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
20 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
75 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
252 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
139 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
45 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
86 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
156 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
40 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
106 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
39 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
380 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
192 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
67 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
580 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
178 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
174 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
0answers
61 views

How to exclude scripts from being moved to the footer using their handle?

I'm working on a small plugin that moves all scripts to the footer using the following code: function move_scripts_to_footer() { global $td_options; if ( !is_admin() and isset( ...
0
votes
3answers
468 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
286 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
30 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
73 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
225 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
46 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
88 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
439 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
611 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
77 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 ...
-1
votes
2answers
138 views

Footer in middle of page in different browers [closed]

For some reason whenever I add a widget to the footer of my site, it moves to the center of the page - but only in Chrome and Safari. Firefox the footer stays put at the bottom. The only way I can ...