go41

Remove the sidebar from a page to display a forum

von Joern am 13. Okt. 2009 | Keine Kommentare

To get a plain page between header and footer in arthemia theme to display a forum you have to create a page template for WordPress first. I just took page.php, which actually has this content:

Code:

<?php get_header(); ?>

 <div id="content">

 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

 <div class="post" id="post_<?php the_ID(); ?>">

 <span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> &raquo; <?php the_title(); ?></span>

 <h2 class="title"><?php the_title(); ?></h2>

  <div class="entry clearfloat">
  <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

  <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

  </div>

 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

 </div>

 <div id="comments">
 <?php comments_template(); ?>
 </div>

 <?php endwhile; endif; ?>

 </div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

You add to the top of the file the remark to be a template for your theme, like this:

Code:

<?php
/*
Template Name: forum as page
*/
?>

You can safely delete all calls for the content as there will be your forum.

To come to the point: Create a new template named forumpage.php with the following content:

Code:

<?php
/*
Template Name: forum as page
*/
?>
<?php get_header(); ?>

<div id="forum" style="height: 500px;">
HERE COMES YOUR FORUM, no styling except some height to have not only one line..
</div>

<?php get_footer(); ?>

load this via ftp into your themes folder (wp-content/themes/arthemia/).
Log into your WordPress Dashboard and click on Pages – Add New.
Just give this page any name (Forum) and select under Attributes Template the new template you created, here: forum as page
No need to put any content as it will not be displayed – so safe now and look if you got a new page in your navigation bar. Click it and you will see your header, a blank unformatted space with ‚HERE COMES YOUR FORUM…‘ and below the footer as it should be.
How to display and format which forum is now up to you, just replace the line with ‚HERE COMES YOUR FORUM…‘ with the call or iframe for the forum.
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 23 weitere Ergebnisse dieses Threads:

Re: Remove the sidebar from a page to display a forum :: Reply by Joern

13. Okt. 2009 (von: Joern)

Simple:Press Forum - I got the hint that if you use the Simple:Press Forum Plugin you still need to keep the call to <?php the_content(); ?> inside the template.It should finally look like this:Code:<?php/*Template Name: forum as page*/?><?php get_header(); ?> …

Help! Homepage fonts are all italics

18. Nov. 2011 (von: Marinka)

Hi!I just changed my website to the excellent Arthemia theme and for reasons unknown on my homepage all the fonts are in italics. Is there anything you can suggest that I may do to remove that? Many, many thanks.Marinkamarinkapeschmann.com Weiterlesen…

Re: Help! Homepage fonts are all italics :: Reply by Joern

19. Nov. 2011 (von: Joern)

Hi Marinka, I can see the italics..I think your problem starts in the second post in the featured section:The title of this post in source code reads:Pentagon Report Reveals Financial Terrorism Suspected in 2008 Economic Crash…<i>Updatedthere is an open <i>…

Re: Help! Homepage fonts are all italics :: Reply by Marinka

20. Nov. 2011 (von: Marinka)

Thank you so very much. Problem solved.Best, Marinka Weiterlesen →

Added Slider trouble deleting code for Headline and Feature

20. Nov. 2011 (von: Marinka)

Hi again,I installed the slider using your instructions from about a year ago and it is working (THANK YOU!) but it appears my main index page is slightly different than the one you used to delete the code to remove…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

20. Nov. 2011 (von: Joern)

great, you did it...!actually you need to remove in index.php stuff just below<?php if(file_exists(TEMPLATEPATH . '/myslider.php')) {include (TEMPLATEPATH . '/myslider.php'); } ?>from here:<div id="top" class="clearfloat"><div id="headline">blabla bla bla down to this part:</div></div></div><?php endwhile; ?></div></div>KEEP the next line and everything below:<div…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

20. Nov. 2011 (von: Marinka)

Joern,You are a God sent. Your instructions worked!! THANK YOU. Just to show you how challenged I am at this -- Here I thought I had downloaded the most recent version of this theme. Slowly but surely I will learn…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

20. Nov. 2011 (von: Joern)

But... where are your images now?Looks like you got an arthemia folder inside the arthemia folder?The link to the style.css points this (wrong) way:....wp-content/themes/arthemia-free/arthemia-free/style.cssI hope that's not because I suggested to use ... Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi!I'm looking for my images now Yes, I tried the new Timthumb and was not successful. Oh, oh. I have a arthemia folder in a arthemia folder. That can't be good. I'm in my FTP right now. Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

You are right. There were two folders (I have no idea how I did that). I deleted them both and just reinstalled arthemia. Will have to redo. Thank you. Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi Joern,I reinstalled the theme and the images are not working either with the original Timthumb or the updated one. I set the cache to 777 as well. Any suggestions? Many thanks.Marinka Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

21. Nov. 2011 (von: Joern)

lucky you are, was thinking of youI realized this already on your site, did you change the entry in your 'Image' customfield?Actually the developer said you should enter this path like this: (sample)wp-content/uploads/2011/11/Occupy-Toronto-Flag.pngth... Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Hi there!You have solved my latest problem once again. I tried your suggestion for the first four pictures and they are now appearing. THANK YOU. I have the timthumb 2 version installed from your most recent link. Is this the…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Joern

21. Nov. 2011 (von: Joern)

Hi Marinka, yes!should be okay now, you are welcome____________________you find me on Google+, Twitter and Facebook Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

21. Nov. 2011 (von: Marinka)

Excellent. Thanks again! Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

22. Nov. 2011 (von: Marinka)

Hi,May I ask you another question? Can this slider be coded to pick up 4 images (posts) over and over instead of it picking up the latest four posts that are posted? I found the code where it is directed…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

22. Nov. 2011 (von: master)

Hi there, good morning!There are many possibilities to do that.1. hardcode the IDs of 4 of your posts - you have to edit myslider.php to change to other posts however2. you assign a new CATEGORY to the for posts you…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

22. Nov. 2011 (von: Marinka)

Hi,Thank you again for taking the time to help me. I know you have lots of other things to do. I think the #2 option looks like the simpliest approach using a featured category.Yes, I repaired the header.php. No idea…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

Hi Joern,I found your earlier instructions regarding setting the slider on a specific category and it works great. Thanks. May I ask you, how do you change the overlay on the slider to a darker color? So far I am…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

17. Dez. 2011 (von: master)

hi, welcome backthe background of the text in the slider is indeed an overlay, it's an image actually!In your style.css the div class="info" tries to load this 'transparent-bg.png' image:#myslider .ui-tabs-panel .info{ position:absolute; top:240px; left:0; width:610px; height:70px; background: url('images/transparent-bg.png');}So what you…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

That did the trick! Thanks again so very, very much.Merry Christmas and happy holidays to you!Marinka Weiterlesen →

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by master

17. Dez. 2011 (von: master)

good, thank you,there is still an image not loading on your site:#navbar-wrapper { width:960px; background: url(images/navbar-wrapper.png);}it's not needed anyway so you could uncomment or delete that line like this:/* background: url(images/navbar-wrapper.png); */more again, (sorry I am 'playing' with your css..)the…

Re: Added Slider trouble deleting code for Headline and Feat :: Reply by Marinka

17. Dez. 2011 (von: Marinka)

You are the best. I implemented all of your suggestions and it looks so much, much better. Thanks again. Yes, I have been playing around with the sidebar. It has been giving me some trouble. The top Sidebar won't take…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: