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 » Post-Kicker, -Byline & -Footer »

PHP goodies for kicker/footer?


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 Oct 12, 2009, 11:36 AM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
I just noticed that, at least in ATA 3.4.4, you can add PHP in the Edit Post/Pages area. Yes! I've never done that, and I'm trying to figure out a cool way to use this. Any ideas, anybody?

For instance, I think you could use PHP to make a certain plugin run at the bottom of just a certain page, or category. I'm sure there are great uses for this. Care to brainstorm? How would you use this wonderful idea?
  #2  
Old Oct 13, 2009, 07:01 AM
juggledad's Avatar
juggledad
 
22,097 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Here is one idea, I didn't like the 'Add to Any' plugin icons at the top of my posts, I wanted them part of the post's footer

1) I took the 'Add to Any' plugin code:
HTML Code:
<?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
2) I added a '<br> at the beginning.
3) I added it to the end of the FOOTER of the Posts (ATO->Edit POST/PAGE INFO ITEMS->FOOTER: Homepage - also did it for the 'FOOTER: Multi Post Pages' and 'FOOTER: Single Post Pages') so the FOOTERS look like this
HTML Code:
%date('F jS, Y')% | %tags-linked('Tags: ', ', ', ' | ')% Category: %categories-linked(', ')% | %comments('Leave a comment', 'One comment', '% comments', 'Comments are closed')% %edit(' | ', 'Edit this post', '')% 
<br><?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
and now I have the icons as part of the post footer.

You can see how it looks at Call of the Muse
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 13, 2009 at 03:19 PM.
  #3  
Old Oct 13, 2009, 09:37 AM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Looks good. I've done that too, just using the Share/save plugin's config info. You get to say where you want it to show up, so that's easy!

I guess you could use it to display an image, right?
  #4  
Old Oct 13, 2009, 01:31 PM
juggledad's Avatar
juggledad
 
22,097 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
sure, since you can put in any PHP in you could do a simple <image..> or if you only wanted it on the frontpage
'<?php if (is_front_page() { echo '<image...>';} ?>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Oct 13, 2009, 04:21 PM
BradBrown's Avatar
BradBrown
 
54 posts · Mar 2009
One of my ATA sites has a multi-author blog. I use the following snippet of code in the kicker to display the author's avatar:

PHP Code:
<?php echo get_avatarget_the_author_email(), $size '48'$default '' ); ?>
I have the CSS set up so the avatar displays to the left of the headline and byline, instead of above.
  #6  
Old Oct 14, 2009, 08:13 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
I have used this in the byline with :

<?php if ( in_category('490') ) { echo '<div id="divBod"><img src = "http://travelhorizonstyle.com.au/wp-content/uploads/5percent.png" /></div>';} ?>

With 'CSS Inserts' :
#divBod {float: right; width: 20%; z-index:1;}

However it in IE8 (not FireFox & Chrome) it truncates the excerpts box on the right side. This is really a css styling issue, but just in case anyone has any suggestions.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
Kicker Text newzgeek Post-Kicker, -Byline & -Footer 1 Sep 15, 2009 04:32 PM
Kicker Box Ddabrai Post-Kicker, -Byline & -Footer 1 Sep 15, 2009 05:42 AM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM
More customization in the kicker? tkcrosley Post-Kicker, -Byline & -Footer 2 Jan 30, 2009 01:46 PM


All times are GMT -6. The time now is 05:24 PM.


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