marilyntan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to hide the header menu and the footer on certain pagesHi Thank you everyone!
Managed to get a crisp solution to this which is the plugin. The code to hide header on the raw html works too..
Forum: Fixing WordPress
In reply to: How to hide the header menu and the footer on certain pagesNow I wonder how to hide the footer..
Forum: Fixing WordPress
In reply to: How to hide the header menu and the footer on certain pagesAlright I figured out! Now this works!
Go to the page, HTML Raw to add
<style>
header
{
display:none !important;
}
.blog-section
{
padding: 0px !important;
}
</style>Forum: Fixing WordPress
In reply to: How to hide the header menu and the footer on certain pagesHi Niyas
Pls refer to this link for the image, the highlighted portion to hide for certain pages. As the highlighted section is meant to be shown site-wide. However I hope to hide these sections on certain pages. Thanks in advance!
https://drive.google.com/file/d/1e_Bi7mJg5XweAPMA7qFTfFI6r4gFv8-s/view?usp=sharing
Not sure if I need to disable cache plugin, in this case I think I am using WP Rocket, I tried to deactivate this plugin and still it doesn’t work.
I tried adding this code in the theme function.php (at the bottom of the existing code) but still it doesn’t work:
add_action(‘wp_head’, ‘hide_navbar_unstopbleyou’);
function hide_header_unstopbleyou(){
if(is_page( 15905 )) // your page id to hide header & navbar
{
?><?php
} //end if
} // end function- This reply was modified 1 year, 8 months ago by marilyntan.
- This reply was modified 1 year, 8 months ago by marilyntan.
- This reply was modified 1 year, 8 months ago by marilyntan.
- This reply was modified 1 year, 8 months ago by marilyntan.