Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Unable to change the sidebar.


  #1  
Old Jun 15, 2011, 11:43 AM
bsprowl
 
11 posts · Jun 2011
Sanford NC
I'm using Atahualpa 3.4.9 and Wordpress 3.0.5.

I wanted to replace the default sidebar with some links and found a sample file format (not sure exactly where at this moment) that I used to create the simple sidebar php file below and saved it to the themes directory with the name “sidebar-left.php” (later changed to “sidebar_left.php” - I don't know which name best matches the naming conventions):

<?php

add_action( 'widgets_init', 'my_register_sidebars' );

function my_register_sidebars() {

/* Register the 'left' sidebar. */
register_sidebar(
array(
'id' => 'sidebar-left',
'name' => ( 'left sidebar' ),
'description' => ( 'Sits on the left side of all pages.' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">',
<p><a href="http://www.facebook.com/update_security_info.php?wizard=1#!/pages/Carolina-Vision-Center/237350326657">Our Facebook page</a></p>
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'

)
}

?>


I opened the site – carolinavisioncenter.com - and found that it does not have this Facebook link in the leftside bar. The displayed sidebar is unchanged. Tried the second name listed above after changing the “id” within the file with the same results.

I checked and this file is available in the Atahualpa editor so I assume that saved in the right place.

I probably missed some basic step but I don't have a clue as to what it might be.
  #2  
Old Jun 15, 2011, 11:59 AM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you don't need to add anything. If you want to replace the default WIDGETS, just add a WIDGET to the SIDEBAR and the default ones will go away.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 15, 2011, 01:33 PM
bsprowl
 
11 posts · Jun 2011
Sanford NC
I do not understand your reply.

Yuo did not tell me what my error might be or how to do that which you suggest.

I have no idea how to add a widget or what a widget might be.

Bob
  #4  
Old Jun 15, 2011, 01:46 PM
juggledad's Avatar
juggledad
 
23,569 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Atahualpa provides you with up to four sidebars, you don't need to add any sidebar.php code.

Wordpress adds some DEFAULT widgets to the sidebars. Once you add your own widget to the sidebar, the default widgets will go away. Try it, add a widget to the left and right sidebar and see what happens.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
sidebar coding, sidebar problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Change Headline Box Background Color robtuk Post-Kicker, -Byline & -Footer 1 Apr 12, 2011 06:01 AM
[SOLVED] Unable to change fontsize on productpage. dilago eCommerce & Atahualpa 2 Oct 23, 2010 04:35 AM
[SOLVED] Unable to change font color of Tubepress widget text Topcat1 Plugins & Atahualpa 10 Oct 28, 2009 11:16 PM
[SOLVED] Unable to change text styling in Atahualpa 3.4.1 prgupta Atahualpa 3 Wordpress theme 2 Sep 8, 2009 12:53 PM
Unable to change themes after using theme switcher plugin?? jack96161 New Versions, & Updating 3 Aug 3, 2009 11:12 AM


All times are GMT -6. The time now is 01:32 PM.


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