Addition of text widget

Latest Reply from Administrator at 2012-09-26 03:24:07

In looking at the theme, it fits save for the need of a text box directly under the slider. Is it possible, without creating havoc on the site, to place a text widget in the center column under the slider? Thank you for a prompt response as this will affect the purchase. .

Hi you can add widget under the slider by adding this code

<div style="background:#111111; clear: both; margin: 10px; padding: 10px;">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Top Sidebar") ) : ?>
Example text
<?php endif; ?>

in file header.php of the theme, right after code

if ((is_front_page()&&$SMTheme->get( 'slider', 'homepage'))||(!is_front_page()&&$SMTheme->get( 'slider', 'innerpage'))) {
?><div class='slider-container'><?php

then add code

'name' => 'Top Sidebar',
'id' => 'top_sidebar',
'description' =>'The top sidebar widget area',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => ''

In the file functions.php of the theme. After you done you will see new sidebar on page Appearance->Widgets, named Top Sidebar. Just put there a text widget, and type a text to make it appears on your pages.

Leave a reply

Add codeAdd image