A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Forum : Want to keep one sidebar from WP theme only
Jun 1, 2010
6:43 pm
Member
Forum Posts: 45
Member Since:
Jun 1, 2010
Offline

Hi my blog has a main section and 1 left and 1 right side bar .

I did the forum.php page and  the forum displays on  a whole page  correctly .

However, I woul like to keep the left sidebar (which has categories,tags ,links and ads )

Ho do I keep one side bar and disable the other ?

 

Thanks .

Jun 1, 2010
8:24 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

that will be under the control of your wp theme. first step is see if it already provides a custom page template you can use. if not, see our wiki for help on creating a custom page template.

Jun 1, 2010
9:20 pm
Member
Forum Posts: 45
Member Since:
Jun 1, 2010
Offline

do you mean this wiki :

http://wiki.simple-press.com/c…..ons/skins/   ?

I am new to all this and I think I need a more step by step tutorial.

Is there a better page ?

 

Also I had already created a custom page  forum.php  from the tutorial example

<?php
    /*
    Template Name: Forum
    */
?>
<?php get_header(); ?>
<div id="fullwidth">
    <div class="post" id="post-<?php the_ID(); ?>">
        <div class="entry">
            <?php the_content('Read the rest of this entry »'); ?>
        </div>
    </div>
</div>
<?php get_footer(); ?>

 

 

Could I add the sidebar details there and if so how ?  ,

What are the codes  to put in etc,   please

 

Thanks .

Jun 1, 2010
10:21 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

the page I was referring to is:

http://wiki.simple-press.com/f…..-template/

but seems you found it…  but you really need to start with page.php and copy it to forum.php (add the page template stuff at the top like you did)…  that way your theme is consistent…  the wiki is a guide and cannot be exact as every theme could be different…

as to your sidebars, how does your current theme add them? check page.php and see if it invokes get_sidebar()…  do you have a sidebar.php???  again, every theme can potentially do it different, so cant be exact without knowing how your theme currently works…

Jun 2, 2010
6:11 am
Member
Forum Posts: 45
Member Since:
Jun 1, 2010
Offline

I got it to work .

 

I included sidebar at the top ,after header ,see below .

 

and removed   this code <div id="fullwidth">

Below is the code for anyone that may have same/similar question.

This worked for me .

Thanks for helping,

 

<?php
    /*
    Template Name: Forum
    */
?>

<?php get_header(); include('lsidebar.php'); ?>

 

<div id="right">

 

    <div class="post" id="post-<?php the_ID(); ?>">
        <div class="entry">
            <?php the_content('Read the rest of this entry »'); ?>
        </div>
    </div>
</div>

<?php ; get_footer(); ?>

 

Jun 2, 2010
8:40 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

good work! way to keep after it! thanks for letting us know.

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: SPQC, joelrob
49 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7363

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10897

Posts: 79582

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23688)