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 » Center area post/pages » Excerpts, Read more, Pagination »

make excerpt to a div


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 7, 2012, 04:10 PM
tixcoca
 
43 posts · Oct 2010
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
  #2  
Old Mar 7, 2012, 04:25 PM
lmilesw's Avatar
lmilesw
 
10,146 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  
Old Mar 7, 2012, 04:59 PM
juggledad's Avatar
juggledad
 
22,712 posts · Mar 2009
OSX 10.10.1 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
  #4  
Old Mar 7, 2012, 04:59 PM
tixcoca
 
43 posts · Oct 2010
I can to start with try it out that way. Thanks.

TXC
  #5  
Old Mar 8, 2012, 04:06 AM
tixcoca
 
43 posts · Oct 2010
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  
Old Mar 8, 2012, 04:19 AM
juggledad's Avatar
juggledad
 
22,712 posts · Mar 2009
OSX 10.10.1 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  
Old Mar 8, 2012, 04:46 AM
tixcoca
 
43 posts · Oct 2010
Perfect, but 'post-headline' got the characters '1>' added
  #8  
Old Mar 8, 2012, 04:54 AM
juggledad's Avatar
juggledad
 
22,712 posts · Mar 2009
OSX 10.10.1 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  
Old Mar 8, 2012, 05:03 AM
tixcoca
 
43 posts · Oct 2010
will look into that, thanks alot!
  #10  
Old Mar 8, 2012, 10:22 AM
tixcoca
 
43 posts · Oct 2010
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  
Old Mar 8, 2012, 11:02 AM
juggledad's Avatar
juggledad
 
22,712 posts · Mar 2009
OSX 10.10.1 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  
Old Mar 8, 2012, 11:23 AM
tixcoca
 
43 posts · Oct 2010
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  
Old Mar 8, 2012, 11:53 AM
juggledad's Avatar
juggledad
 
22,712 posts · Mar 2009
OSX 10.10.1 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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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 07:24 PM
How is the excerpt retrieved? Michael T. Excerpts, Read more, Pagination 6 Mar 18, 2011 03:23 PM
rss an excerpt Seidlm RSS, Feeds & Subscribing 0 Aug 12, 2010 01:25 PM
ask something about excerpt Jeandseen Excerpts, Read more, Pagination 0 Jul 25, 2009 09:20 PM


All times are GMT -6. The time now is 09:46 PM.


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