Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Banner Question (http://forum.bytesforall.com/showthread.php?t=131)

cnhzcy14 Jan 28, 2009 09:05 AM

Banner Question
 
Hi guys, how can I appoint different banners to different pages? Is that possible? Thank you!

Flynn Jan 28, 2009 09:18 AM

Atahualpa has no ad options but you can include the banner code in the files or via text widgets. Please provide more details: Where do you want to put the banners (sidebars, top, bottom, inside post), also what do you mean by "different pages". Based on page type (category, page, home, single post page) or per single page ("about", "services", "products"...)?

Tigger Feb 7, 2009 10:28 AM

Same to me. I would like to create a own banner picture and stick it to a page. If you go on page "fruits", you will see the raspberry as a banner. If you go to the page "Bushes" you will see the green weed ... etc.

Turn off banner rotation and stick different banners to a specific page ! How does that work ?

Flynn Feb 7, 2009 11:17 AM

You can create a third widget area by putting this

PHP Code:

<tr>
<td id="top-widgets" colspan="<?php echo $cols?>">
<?php // 3rd Sidebar 
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(3) ) : 
endif; 
?>
</td>
</tr>

into header.php, before or after
PHP Code:

    <tr>

        <!-- Header -->
        <td id="header" colspan="<?php echo $cols?>">
        
        <?php bfa_header_config($bfa_ata_configure_header); ?>

        </td>
        <!-- / Header -->

    </tr>

and put this

PHP Code:

    register_sidebar(array(
         
'name'=>'Top Widgets',
        
'before_widget' => '<div id="%1$s" class="widget %2$s">',
        
'after_widget' => '</div>',
        
'before_title' => '',
        
'after_title' => '',
    )); 

into functions.php after this
PHP Code:

    register_sidebar(array(
         
'name'=>'Right Sidebar',
        
'before_widget' => '<div id="%1$s" class="widget %2$s">',
        
'after_widget' => '</div></div>',
        
'before_title' => '<div class="widget-title"><h3>',
        
'after_title' => '</h3></div><div class="widget-content">',
    )); 

Then install this widget http://forum.bytesforall.com/showthread.php?t=258 . Put your banner code(s) into (a) text widget(s) and put the text widget(s) into the newly created "Top Widgets" Sidebar. Then use the instructions in that thread to show/not show those text widgets based on Wordpress conditional tags as described in that thread, and more examples here http://codex.wordpress.org/Conditional_Tags


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

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