Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Unable to change the sidebar.


  #1  
Old Jun 15, 2011, 10: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, 10:59 AM
juggledad's Avatar
juggledad
 
23,765 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, 12: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, 12:46 PM
juggledad's Avatar
juggledad
 
23,765 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 05:01 AM
[SOLVED] Unable to change fontsize on productpage. dilago eCommerce & Atahualpa 2 Oct 23, 2010 03:35 AM
[SOLVED] Unable to change font color of Tubepress widget text Topcat1 Plugins & Atahualpa 10 Oct 28, 2009 10:16 PM
[SOLVED] Unable to change text styling in Atahualpa 3.4.1 prgupta Atahualpa 3 Wordpress theme 2 Sep 8, 2009 11:53 AM
Unable to change themes after using theme switcher plugin?? jack96161 New Versions, & Updating 3 Aug 3, 2009 10:12 AM


All times are GMT -6. The time now is 12:50 AM.


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