Remove slider on home page
-
Yup, you have to replace
if ( is_page('blog') )part with other pages conditional tags.Yeah, but commas break your code. Use OR (||) operator.
Example,
if( is_home() || is_page('about') || is_category('technology') )Off to get some sleep as it’s 23:00 here in India. 😀
Admin
The
is_page()function can accept an array of pages to check for, and you can also use slug along with ID, like this:is_page( array( 42, 'about-me', 'Contact' ) );That will check if the current page is any one of those pages.
Hi Syahir
Thanks for that, much appreciated.
As I mentioned to Prasanna I know nothing, or at least very little, about php so this will be a steep learning curve so please have some patience with me. I do have some other questions but they are on different subjects so I will raise separate posts for those.
Hope to speak soon
Best wishes
Deryn
Marking thread as resolved. You can do this yourself as well.
Viewing 8 posts - 11 through 18 (of 18 total)
- 1
- 2
- You must be logged in to reply to this topic.
