make excerpt to a div
I would like to put global height/width background etc to my excerpts, is that possible? I have not find any plugin or description on how to turn the excerpt into a div.
Thanks TXC |
The only way I can think go to do that is to use the manual excerpt box and put a div with a height in it. This of course isn't global.
|
I can to start with try it out that way. Thanks.
TXC |
an excerpts is just a truncated post and is in a DIV with the class 'post-bodycopy'
|
Is it not possible to make the excerpt to an exclusive div? When I style 'the post-bodycopy' it messes the post up.
TXH |
Quote:
HTML Code:
the_excerpt(); HTML Code:
?> <div class="my-excerpt"> <?php If you want to style the entire excerpt container you will have to do a lot more and that is beyond the free help avaliable from me on the forum. |
Perfect, but 'post-headline' got the characters '1>' added :o
|
the post headline is processed BEFORE this code so it must be something else you did or you made a typo. I would download a fresh copy of the theme and do a file compare between what you have and a fresh copy of bfa_post_parts.php to see what the differences are.
|
will look into that, thanks alot!
|
I cant see any differences between the a fresh 'bfa_post_parts.php' and the one with the excerpt div modification. I also made a fresh Atahualpa install and added the excerpt modification. The characters still turns up in 'post-headline'. I noticed depending on what option in the SEO for post/page title the characters change between 1> and 2> in post-headline'.
Here is the link to the fresh install where you can see the result. www.markuseckerman.com/wp Thanks TXC |
That looks like the end of the '<h2> that wraps arount the post title on a multi post page. That is n another area of the code.
|
ok, is it a typo that doesn't need to be there or? Hard to say i guess but, 'another area', do mean in the bfa_post_parts.php?
TXC |
if you look in bfa_post_parts.php you find is is broken into sections. One section deals with the post headline. That is the code that builds the html that comprises the title. I assume you have an error there...though it could be somewhere else and showing there.
it is possible that some plug-in is getting 'into the act' and causing the issue. I tried the code before posting it and it works for me. |
All times are GMT -6. The time now is 06:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.