Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Post/Page Styling

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old Jul 14, 2010, 07:25 AM
writeleft's Avatar
41 posts · Oct 2009
I'm currently editing a site that will be going live soon.

I am editing intended to edit the post styling as to make sure that the text did not get lost in the background image that I'm using on the center column style. (For some reason, this is only really an issue with posts, which are basically current event type articles from the organization I'm designing this site for.)

I styled the posts the way I wanted them using the Style Post Container option in the theme options menu and have placed a conditional tag around the styling so that it only shows up on single post pages.

It basically looks like this:

PHP Code:
<?php if (is_single()) {?>
background: white;
padding: 5px;
border: solid 5px #242424;
<?php ?>
This prevents the styling from showing up on PAGE pages, at least that appears to be the case so far. The issue that I'm noticing, is that it also prevents the styling from showing up on multiple post pages, since it is specifically referring to single posts.

Could someone lend me a hand in figuring out a workaround so that I can apply the needed formatting to single post pages as well as multi-post pages, but not have to worry about PAGE pages. This is especially an issue because the site uses a static front page, so the post styling shows up there even if there is no content in the static front page.

Thanks for any help you can provide.

I'm running WP 3.0 and ATA 3.5.1. Unfortunately, I cannot provide a link at the moment, so whatever assistance you can provide with what I've written is very much appreciated.
Old Jul 14, 2010, 08:16 AM
writeleft's Avatar
41 posts · Oct 2009
I should really not post after staying up for hours and not having any type of morning energy boost.

I think I may have solved my own problem.

To get the formatting I wanted, I simply created an additional set of style variables and placed them in a conditional tag for my "home" page. It looks something like this:

PHP Code:
<?php if (is_home()) { ?>
margin: 0 0 30px 0;
background: #ffffff;
padding: 5px;
border: solid 5px #242424;
<?php ?>
I added this right after the stuff I put in for the styling on single post pages. I figure, using conditional statements still, that I can replicate this an create a custom style of sorts for any specific page I want.

I suppose I only wonder if this would cause any type of conflict that I haven't noticed as of yet. I don't recall the Style Post Container option in the theme options specifying whether you can use php there. Does anyone know anything about this?

Either way, it appears that I may have solved my own problem after having a nice hot Americano. :-)
Old Jul 14, 2010, 05:47 PM
writeleft's Avatar
41 posts · Oct 2009
Can anyone confirm that it is okay to use php in the Style Post Container section of the theme options? Other than a slight fear that I may have committed a no no. I think this is officially solved.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Styling the WP sign-up page wadams92101 RSS, Feeds & Subscribing 3 May 21, 2010 07:49 PM
Still having Post title styling issues Paleo Pat Atahualpa 3 Wordpress theme 0 Oct 26, 2009 09:24 AM
[SOLVED] Post title styling not working. Paleo Pat Atahualpa 3 Wordpress theme 13 Oct 22, 2009 08:30 PM
Alternate Post Styling for Different Authors? stuffman Post-Kicker, -Byline & -Footer 4 May 21, 2009 11:42 AM
Main page and post page styling....how do I change it? d_random Page & Category Menu Bars 1 May 19, 2009 05:25 PM

All times are GMT -6. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.