|
#1
Mar 7, 2012, 05:10 PM
|
|
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
|
#2
Mar 7, 2012, 05:25 PM
|
|
|
|
10,176 posts · Jul 2009
Central New York State USA
|
|
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.
__________________
~Larry ( CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
|
#3
Mar 7, 2012, 05:59 PM
|
|
I can to start with try it out that way. Thanks.
TXC
|
#4
Mar 7, 2012, 05:59 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
an excerpts is just a truncated post and is in a DIV with the class 'post-bodycopy'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Mar 8, 2012, 05:06 AM
|
|
Is it not possible to make the excerpt to an exclusive div? When I style 'the post-bodycopy' it messes the post up.
TXH
|
#6
Mar 8, 2012, 05:19 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
Is it not possible to make the excerpt to an exclusive div?
|
you could try this - edit bfa_post_parts.php and change line 140 (version 3.7.3) from
HTML Code:
the_excerpt();
to
HTML Code:
?> <div class="my-excerpt"> <?php
the_excerpt();
?> </div> <?php
this will give you a class called 'my-excerpt' that you can use to style the excerpts content - ie the body of the excerpt.
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Mar 8, 2012, 05:46 AM
|
|
Perfect, but 'post-headline' got the characters '1>' added
|
#8
Mar 8, 2012, 05:54 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Mar 8, 2012, 06:03 AM
|
|
will look into that, thanks alot!
|
#10
Mar 8, 2012, 11:22 AM
|
|
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
|
#11
Mar 8, 2012, 12:02 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#12
Mar 8, 2012, 12:23 PM
|
|
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
|
#13
Mar 8, 2012, 12:53 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
Excerpt: h3.../h3 becomes p..., but no closing /p
|
ymf |
Excerpts, Read more, Pagination |
8 |
Jan 12, 2012 08:24 PM |
How is the excerpt retrieved?
|
Michael T. |
Excerpts, Read more, Pagination |
6 |
Mar 18, 2011 04:23 PM |
rss an excerpt
|
Seidlm |
RSS, Feeds & Subscribing |
0 |
Aug 12, 2010 02:25 PM |
ask something about excerpt
|
Jeandseen |
Excerpts, Read more, Pagination |
0 |
Jul 25, 2009 10:20 PM |
|