Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter helenebt

    (@helenebt)

    Thank you for the link ??

    Thread Starter helenebt

    (@helenebt)

    thanks.

    Thread Starter helenebt

    (@helenebt)

    i would be if I had the code and the how to.
    I tried this:
    https://www.blogohblog.com/adding-extra-sidebar-to-your-wordpress-theme/
    but it didn’t work w/ azul.
    I couldn’t find this line <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    in the index.php file.
    I fiddled with it and tried other things which didn’t work either.
    Also, adding a “2” in the function.php file like this:

    <?php
    if ( function_exists('register_sidebars') )
    register_sidebars(2);
    ?>

    didn’t call a second sidebar in the the widget area.

    yes, I would like to add a permanent sidebar in which I would like to easily move widgets around.. I was hoping your plugin might do it, and it looks like it might with a bit of tinkering around with code which I really don’t know much of. But I will give your suggestions a try and see what happens ??
    Thank you for your help!

    Hi Todd,
    I named it leftbar and changed the wop_1 to leftbar in the code then added it to the page.php file (didn’t know where, so put it right at the top of the rest of the code.. could be the problem?). I added “my pages” widget to that sidebar. It doesn’t end up creating a side bar on my site, but puts my pages on the top left corner of the background and pushes the rest of my site off and everything looks kind of broken. I am using the Azul theme, in case that info makes a difference..

    Thank you for your reply it is very much appreciated! ??

    here’s the full code for the page.php file:

    <?php get_header(); ?>
    
    		<div id="posts">
    
    			<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    
    				<div class="post" id="post-<?php the_ID(); ?>">
    
    					<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><?php edit_post_link('Edit', ' | ', ''); ?></h2>
    
    					<div class="tags">
    						<?php the_tags('Tags: ', ', ', ''); ?>
    					</div>
    
    					<div class="entry">
    
    						<?php the_content(); ?>
    
    						<?php link_pages('<p><strong>Pages:</strong>','</p>','number'); ?>
    
    					</div>
    
    				</div>
    
    			<?php endwhile; ?>
    
    			<?php else : ?>
    
    				<div class="post" id="post-<?php the_ID(); ?>">
    					<h2><?php _e('Not Found'); ?></h2>
    				</div>
    
    			<?php endif; ?>
    
    		</div>
    
    		<?php get_sidebar(); ?>
    
    		<?php get_footer(); ?>
    
    		<?php wp_footer(); ?>
    
    	</div>
    
    </body>
    </html>

    Hi Todd,
    I got the plugin in order to add a left sidebar to my theme. I tried to add the code <?php widgets_on_template(“wop_1”); ?> to my theme’s “page.php” file but it just messed up the entire theme.
    could you tell me the name of the php file I am supposed to put the code in? and if it was the correct php file is there something else I am supposed to do?
    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)