Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:36:39+00:00 2026-06-15T23:36:39+00:00

I am working on this website. I am trying to filter the the two

  • 0

I am working on this website. I am trying to filter the the two arrows shown above each image(previous and next) if its the front page. I have created the following hook for it,

function removal() {
return null;
}

if(is_front_page()){
    add_filter('prev', 'removal');
    add_filter('next', 'removal');
}

The problem is that the images are still getting displayed. Any ideas why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:36:40+00:00Added an answer on June 15, 2026 at 11:36 pm

    Edit: there is a more elegant way in the CSS style-sheet, taking advantage of the fact that WP gives the home page’s body the home class:

    body.home .prev,
    body.home .next { display: none }
    

    this targets the "prev" and "next" buttons on the home page only.

    Old answer: Output the CSS in your if(is_front_page()) call.

    In the page’s <head> section, do

     <?
    
      if(is_front_page())
       echo "<style type='text/css'>.prev, .next { display: none }</style>";
    
    
      ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying do scrape this website with python and lxml. Its working greate on
For this website we're working on, we're trying to get the most popular topics
I am working on this website. The problem is that I am trying to
I'm working on this website, trying to call a function from a C# DLL
I'm trying to make an upload function in this website I'm working on, but
I'm working on this website http://www.eluminatecreative.com/new/index.html and where it says sum'r fling I need
I'm working on this website in WordPress and I want the content with the
Published this website but the Tweet button doesn't appear to be working. I can
Guys check this website on FF and Chrome For some reason(s), jQuery isn't working
I am working on parsing a website in my application. This is the website:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.