is_home()
will do just exactly that. It returns true on the home page and false on any other page. Your solution will be to completely wrap your code above in an is_home()
conditional
if ( is_home() ) {
// Your in question comes here
}
Related Posts:
- How to stick the footer to the bottom of the page? [closed]
- How to remove version and thank you message from the admin footer
- Can i put ‘page’ at the bottom of each page?
- footer.php – twentysixteen child theme – social links menu to output font awesome icons
- How to edit footer
- How do i change the footer?
- Where is the admin bar instantiated?
- Using wp_register_style to load CSS in footer?
- editing footer text in JBST theme
- How to find the right file with inspector? [closed]
- WordPress Footer Missing After Website Hack
- wp_footer hook not working inside a class if not single [closed]
- Removing a link below from footer
- WordPress Site footer on Firefox displays a error
- How to edit footer content
- Changing copyright year in Footer.php with Custom plugin
- footer does not respect css stylesheet
- How to fix the footer to the bottom of the screen
- Delete bullet points in footer menu [closed]
- Getting A Link below footer – Want to remove it. How?
- How can I change this footer.php code to call a random image on reload?
- Editing footer for one page, keeping it the same for others
- Place Footer at bottom of page with short text
- Can’t deregister / dequeue scripts in WordPress
- Code for changing the size of the footer block (background) and font size
- How to add another image on footer.php
- On just 1 (new) page of my site there appears a wordpress footer with copyright 2012 which I want to remove
- Footer not visible
- how to edit part of footer
- How to remove the footer from a theme
- footer display problem
- How I can Delete Footer without using plugin BlankSlate?
- My footer has disappeared but only on my home page
- Meta Slider Lite plugin shortcode in post not working
- Footer with next/previous posts
- Move jquery ui to footer
- How do I change the footer (Norma) [closed]
- Re-position footer and force it to drop below blog post excerpts on home page [closed]
- How can I completely edit the footer?
- How to edit the WordPress footer
- How to Keep footer link remain intact?
- Footer Missing in website [closed]
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- Fix footer to bottom of page
- How can I make my footer center to the bottom of the page?
- How to load css in the footer [duplicate]
- How to add javascript just before the closing body tag in the footer of WordPress
- wp_enqueue script my_javascript_file in the footer
- Hook for writing text string after footer scripts
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- Template part vs Sidebar (differences)
- Putting footer content in a “page” – Doing it wrong?
- Move jQuery and Migrate to footer?
- How to safely remove the footer (twentytwenty)
- How do I enqueue a JavaScript in my footer via the functions.php file?
- Adding footers to posts?
- Main Menu and Sub Menu Items for Footer
- Why would this IF statement not work? [closed]
- can’t change footer
- Change directory of javascript files
- Getting wp_footer() to work without wp_head()
- Create a page template with No Footer
- Separator for custom nav menu
- Show widget differently depending on if it’s in the sidebar or footer
- Edit footer via customizer
- Footer.php being inserted before article closing tag?
- What is this code in my theme’s footer.php causing chmod permission warnings? [closed]
- Add content to footer – above wp_footer
- JavaScript enque stopped working
- Copyright info change – Corporate Plus Theme PHP [closed]
- Return get_header and get_footer string instead of echo it
- Which function required?
- Displaying shortcode in footer
- Getting ACF Field in Page – From the Footer
- My website is not showing Footer section
- My wordpress site is using local ip to point to jquery and other files, how to fix it?
- With over a page of content the footer remains where the bottom of the screen was at top scroll
- Export Header and Footer
- Print page content with formatting when doing custom SQL query
- Adding Gallery to Footer of Homepage
- Should i use custom post type for a custom footer?
- Code needs wrapper/container to put footer back in, but where?
- Can’t find image to remove
- Moving Javascript from footer to header
- Add my footer menu to the header
- Front End Page Not Loading Header Footer
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- Custom Fields Not Working In Footer
- WordPress Get Header and Footer using in Admin Area
- Conditional statements based on custom meta value in category archives
- customize footer widgets area
- How to display a link in the footer section
- How to implement conditional PHP in Footer
- Add JavaScript in footer if shortcode used in page [duplicate]
- shortcode inside post called by ID does not render as expected
- How to create a custom image gallery in the footer?
- TwentyThirteen – Footer overlapping content [closed]
- How can I structure my pseudo footer nav code with wordpress codex code?
- Why are some SVG-images not visible in my footer?
- images map on website not working