Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Unwanted style difference in singel post and that same post on single displa (http://forum.bytesforall.com/showthread.php?t=3478)

Sakshin Sep 15, 2009 04:54 PM

[SOLVED] Unwanted style difference in singel post and that same post on single displa
 
Hello Atahualp friends.

I have this strange thing going on. I have posts, of course, and they look nice. But the same post is also imported on a single page and there it looks really different. I would like it to be the same.

Can anybody shed some light on where this difference comes from and how do I get the to look the same?

The way the single post looks;
http://newspiration.com/news/2009/09/vip-of-the-week/

And now the exact same post but the displayed on the single page;
http://newspiration.com/news/vip/

And this is the code with which I draw that post into the page;
<div class="txtboxvip">

<?php if ( is_page('3') ) { ?>
<?php $my_query = new WP_Query('category_name=vip&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post(); ?>

<h2><?php the_title(); ?></a></h2><?php the_content(); ?>

<?php endwhile; ?>
<?php } ?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 1; /* Postcount needed for option "1 first posts full posts" */ ?>

</div>


Anybody??? :confused:

juggledad Sep 15, 2009 05:27 PM

What version of Atahualpa, WP and PHP?
there must be some more code you are using. On the 'single post page' I'm seeing a reference to <div class="txtbox"> while the 'single page' shows <div class="txtboxvip">

I also notice that the 'Previous VIPs' is in a sidebar on the 'single post page', but part of the main column in the 'single page'

Check the styling that goes with the two classes.

Sakshin Sep 15, 2009 06:26 PM

I'm running latest wp 284 & atahualpa the latest and php 5 something.

The textbox div is a div I made into the normal index file. . The other div-vip is an div which I made into a template file.

Do I need to get the css for the plain atahualpa index (main column?) and glue it into the style for the template, Div? And if so, do I find it in the css.php? Under what name?

I really got creative here to get this effect of only showing images as excerpts, without javascript. That's why you'll see it on the single page as a widget and on the other page as a div in the main frame. Lol.

And thanx for your quick reply, I start lovin Atahualpa more and more.

juggledad Sep 16, 2009 12:23 PM

What images without excerpts are you talking about?

And If I can ask, what are you trying to do? maybe there is a way to do it, within Atahualpa/WP so you can just use the Atahualpa css

Sakshin Sep 16, 2009 01:29 PM

Yes Juggledad.
I changed the css.php from atahualpa and added the div to it. now the post on the static single page looks the same as the single post. Great.

About the images, i posted some questions about how to make create thumbnail images from the excerts into sidebar so when you click on them the show you the according post. It seemed that this was a javascript thing and your partner or anybody on this forum had time or knowledge how to do this.

So, after some mindboggling days I found this widget which accepts php code and I found some code on the web how to let the thumbnail appear. And it works. Although maybe not the neatest solution, it works, and I'm happy.

The threath about this issue you find here. http://forum.bytesforall.com/showthread.php?t=3070

Warm regards :) ,
Sakshin


All times are GMT -6. The time now is 07:15 AM.

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