causasui
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Draw on ImagesThanks but I looking for something to draw lines and text.
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesI got it, it was a template that called a span style, once I found the source css i could determine the proper width.
Solved, learned a few things along the way also.
;)~
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesWhat do I do to call a css style that will give me control over this page container? It doesnt call container, even if I add a different content value it doesnt seem to work.
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesOk, so I created a custom page template named nosidebar.php.
I can choose it from the drop down when I add a page and it does not have a side bar.BUT, as I have read I still have the space bloacked out for the side bar. I copied the page.php code removed the sidebar code.
Now, the page.php script is :
<?php
/*
Template Name: nosidebar
*/
?>
<?php get_header(); ?>
<div class=”span-16″>
<div id=”content”><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2 class=”title”><?php the_title(); ?></h2>
<div class=”entry”>
<?php if ( function_exists(“has_post_thumbnail”) && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array(“class” => “alignleft post_thumbnail”)); } ?>
<?php the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?><?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
</div>
</div></div>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesPut his code:
<?php if( !is_page( array( 124, 379, 6 ) ) ) get_sidebar()){?>
<?php get_sidebar(); ?>
<?php } ?>Didnt work, it 500’d all my pages
I also added JUST this:
<?php if( !is_page( array( 124, 379, 111 ) ) ) get_sidebar());?>
Same result, 500 all ages.
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesOk thanks, and I just add that to the page.php in place of what I had correct?
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesDo I add this code to the above or delete the above and replace with this?
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesGot to be a way to use PHP in the page.php to define what pages you want to exlude the side bar from?
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesIt works for sure.
Here is tutorial.
Modify your page.php file
In your WordPress Editor, go to Appearance / Editor and click on page.php. Scroll down to the bottom of the file where you will see the line of code that displays your sidebar:
<?php get_sidebar(); ?>Replace that one line with this:
<?php if ( !( is_page(‘696‘) ) ) { ?> <?php get_sidebar(); ?> <?php } ?>Note that you will need to replace the red 696 post ID number above with your Post ID number.
Save the file. You’re done.
[Please post code snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesgot a tutorial on that? I wish this code worked 😉
Forum: Fixing WordPress
In reply to: Help removing sidebar from specific page – SmartOne theme!!<?php if (is_page(‘page number’)) : ?>
<?php else : ?>
<?php get_sidebar(); ?>
<?php endif; ?>Forum: Fixing WordPress
In reply to: How to remove sidebar from multiple pagesAny word on this, I really need per page ability to remove side bar.