JacobHenderson5989
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pagemessage sent
??
check your other folder please
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageI’m sorry, I’m having the hardest time acquainting myself on skype. I just created the account and I do not see any message board or forum or any way to add you as a contact.
I’m not familiar with this communication platform.
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageI have a skype created
jacob.henderson511
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageOn my live server.
I’m logged into my control panel editing the code straight from there
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageOk so get this…
I make the page visible in the menu
and past the code in my page.php
and create custom fields to disableSidebar with a true valueAND IT WORKS!!!
It has to be something to do with my search bar.
Maybe there are settings for the search bar that are making the sidebar appear?? I have no idea
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageI appreciate you going out of your way but unfortunately I do not have a webcam.
I’m baffled. If we deleted the sidebar code in the php then it should be impossible that it is still there.
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageI cleared my cache and deactivated the plugin
I have the search.php in my child theme folder and my appearance/editor is pointing to it along with my other child themes
I edited the parent theme as well, but again, since I’m using a child theme it won’t be affected
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageThank you again for your help, but unfortunately the side bar is still there!
It worked initially then when i searched the page again and other hidden pages it pops back up.
Wouldn’t that be impossible though?
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific page<?php /** * The template for displaying Search Results pages. * * @package Kavya */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'kavya' ), '<span>' . get_search_query() . '</span>' ); ?></h1> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'search' ); ?> <?php endwhile; ?> <?php kavya_paging_nav( 'nav-below' ); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </main><!-- #main --> </section><!-- #primary --> <?php // look to see if we've disabled sidebar in a custom field, if not show it $disableSidebar = get_post_meta($post->ID, 'disableSidebar', $single = true); if ($disableSidebar !== 'true') { get_sidebar(); } ?> <?php get_footer(); ?>
Thank you so much for helping. I’m just so confused why the sidebar would keep appearing after I refresh
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageIt works but the side bar appears after I refresh the page.
Is this a cache thing?
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pagewell… it was working, now it’s not.
:/
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageAHHHH!!!!
I didn’t create a child search.php!!!
YOU’RE THE BEST!!!!!!!!!!!!!!
Thank you for your help!!!!!!!!!!
I’m so sorry I didn’t do a good job of explaining my problem but you helped me soooo much!!!!!!!!!!!!
Yay!!!!!!!!!!
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pagehmmm…
I just pasted
<?php // look to see if we've disabled sidebar in a custom field, if not show it $disableSidebar = get_post_meta($post->ID, 'disableSidebar', $single = true); if ($disableSidebar !== 'true') { get_sidebar(); } ?>
into the search.php to replace it with
php get_sidebar
and it didn’t work?
Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pagehttps://www.whatwelivefor.com/?s=wwlf+family
I do not believe I have an extra side bar.
I’m pasting the code in my child theme page.phpI mean, can I just hard code my page.php to just exclude
a particular post ID since I just need one page side bar
excluded?Forum: Fixing WordPress
In reply to: Disable sidebar on a specific pageI pasted this bit of code in my page.php
‘<?php // look to see if we’ve disabled sidebar in a custom field, if not show it
$disableSidebar = get_post_meta($post->ID, ‘disableSidebar’, $single = true);
if ($disableSidebar !== ‘true’) { get_sidebar(); }
?>’I’m trying to edit a hidden page that you can find by typing in WWLF family in the search bar.
I just need this one page without the side bar, but I believe this code was supposed to allow me to create custom fields for any page and disable sidebars by setting the value to true.