• Resolved TGC5308

    (@tgc5308)


    I would like to add a graphic and link to one of the sidebars. I need to plug in the code for this.

    When I go to the Edit page I see the header, footer, middle and several other areas, but nothing I recognize as the sidebars.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Use a widget to add content to a sidebar. Put the content into a widget and place the widget in a sidebar.

    Thread Starter TGC5308

    (@tgc5308)

    I would like to add a graphic and link to one of the sidebars. I need to plug in the code for this.

    When I go to the Edit page I see the header, footer, middle and several other areas, but nothing I recognize as the sidebars.

    what is your theme??

    Thread Starter TGC5308

    (@tgc5308)

    Thread Starter TGC5308

    (@tgc5308)

    Hi:
    I still need to find out how to put in codes for ads and a link to the sidebars. I am guessing I do this from the Edit page.

    Thanks.

    Running into a similar problem. Trying to add text and a custom image field the way other blogs do their feature section.

    @tgc5308 I discovered that if you leave the theme options alone, you can indeed edit the sidebar code by diving into the footer.php —

    namely, find this section in footer.php:

    <!-- Right Sidebar -->
    <td id="right">
    
    	<?php // Widgetize the Right Sidebar
    	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
    
        	<div class="widget"><div class="widget-title">
        	<h3>Recent Posts</h3></div>
    <?php $r = new WP_Query(array(
    	'showposts' => 20,
    	'what_to_show' => 'posts',
    	'nopaging' => 0,
    	'post_status' => 'publish',
    	'caller_get_posts' => 1));
    if ($r->have_posts()) : ?>
    <ul><?php  while ($r->have_posts()) : $r->the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li>
        	<?php endwhile; ?>
        	</ul>
        	<?php wp_reset_query();  // Restore global post data stomped by the_post().
        	endif; ?>
        </div>
    
       ......
    
    <!-- / Right Sidebar -->

    The problem is, once you “widgetize the sidebar”, (that is.. using the dashboard to add widgets to the appearance of the right sidebar) I can find no way of editing the code. I’m gonna try tinkering some more, possibly dive into the PHP of wp-includes/widgets.php

    wish me luck!

    Pardon me but can’t you just use the text widget and do your image & link HTML with that?

    Thread Starter TGC5308

    (@tgc5308)

    Now I get it. I didn’t realize that the text widget was actually blank. BytesForAll told me that a month ago and it just didn’t seem to click.

    Thanks, ChiefAlchemist.

    hungjon, go to the text widget and just plug your code there. I don’t know why I made this so hard.

    I have an issue with the right sidebar on this site: Avazzia

    Ever since my second post, the blogroll and meta and calendar appear way down the page. I went in and selected the Atahualpa settings reset.

    Is my problem due to changing the header image and removing the opacity? I have tried several things and want that dashed area on the right to appear again and not have my sidebar components way down the page.
    Thanks,
    Danielle Parsons
    360.383.0265 Pacific Weekdays

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘editing the sidebar’ is closed to new replies.