Forums

Hi Everyone:Just Joined. How Do I edit sidebar nav topics (17 posts)

  1. paulmackie
    Member
    Posted 3 years ago #

    Hi Everyone,
    I am totally new to wordpress and have a site here:
    http://educationalchildsplay.com/membership/
    I need to remove the left sidebar "monthly archives" and "related resources" and reorder the categories links list; I would also like to remove some of the meta links.

    There are also some blue squares under "advertising" column and I would like to put a picture of my storybooks that teach graphics in there with a link to the sales page; is this possible?

    Thank you in advance for any help.

    have a great day.

    Paul in Calgary.
    The Child Development Guy.

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi Paul

    In your theme folder /wp-content/themes/{theme-name} open up sidebar.php for editing.

    You will find a section near the bottom where the Meta items are defined. Remove the ones you don't want. You can experiment by commenting them out before you delete them, until you find the exact lines you want to remove.

    HTML comments are <!-- --> and PHP comments, within the opening and closing PHP tags are /* and */

    Save and refresh your browser to see if your choices were correct. If not, modify, save, and check again.

    Do the same with monthly archives and related resources.

    Most themes these days that have advertising boxes seem to have a way to edit them from a theme control panel. It would be in the Admin area under Appearance - see if there is an appropriate option. The code appears to be in sidebar.php so you can edit it there if there is no place in the admin section.

    It is always a good idea to make a copy of any file you are changing before changing anything, so you can restore if any problem arises.

  3. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    Thanks so much for your reply; I will give it a try.

    Just a quick forum question: can people PM each other in this forum, if so how?

    Thanks again.

    Have a great day.

    Paul in Calgary.
    The Child Development Guy.

  4. whooami
    Member
    Posted 3 years ago #

    Just a quick forum question: can people PM each other in this forum

    no.

  5. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    I can't find the links in the categories and what I have now renamed child development resources.
    Is the list of links somewhere else?

    This is the code in the sidebar.php

    
    <!-- begin sidebar -->

    <div id='menu-left'>

    <div class='menu1'>

    <h2><?php _e('Categories'); ?></h2>

      <li id="categories">
      <?php wp_list_cats(); ?>
      <li id="resources"><h2><?php _e('Child Development Resources'); ?></h2>

      <?php get_links('-1', '
    • ', '
    • ', '
      '); ?>
      <li id="syndication"><h2><?php _e('RSS Subscription'); ?></h2>

      <li id="meta"><h2><?php _e('Administration'); ?></h2>

      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • <?php wp_meta(); ?>

    </div>

    <div class='menu2'>

      <li id="advertisement"><h2><?php _e('Advertisement'); ?></h2>

    • <?php advertisement(); ?>

    </div>
    </div>

    <!-- end sidebar -->

    Thanks again for all your help.

    Paul in Calgary.
    The Child Development Guy.

  6. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    I checked the advertisement.php
    this is the code:
    <div class="125ads">
    <img src="<?php bloginfo('stylesheet_directory');?>/images/125x125.jpg" alt="ads" width="125" height="125" />
    <img src="<?php bloginfo('stylesheet_directory');?>/images/125x125.jpg" alt="ads" width="125" height="125" />
    <img src="<?php bloginfo('stylesheet_directory');?>/images/125x125.jpg" alt="ads" width="125" height="125" />
    <img src="<?php bloginfo('stylesheet_directory');?>/images/125x125.jpg" alt="ads" width="125" height="125" />
    </div>

    how would I add my own graphic and redirect link?
    My thinking is to just change the image 125x125.jpg in the images folder and add my own images; then change each 125x125.jpgs name in this code to my image names.
    Not sure how I make them clickable redirect images.

    Thanks again.

    Paul in Calgary.
    The Child Development Guy.

  7. paulmackie
    Member
    Posted 3 years ago #

    Hi Everyone,
    Can anyone answer the above two code questions?
    My site is here:
    http://educationalchildsplay.com/membership/

    Have a great day.

    Paul in Calgary
    The Child Development Guy

  8. paulmackie
    Member
    Posted 3 years ago #

    Hi Everyone,
    Is there information somewhere that explains how to adjust the sidebar links in a wordpress template; I am looking for answers to the above questions.

    Have a great day.

    Paul in Calgary.
    The Child Development Guy

  9. stvwlf
    Member
    Posted 3 years ago #

    Hi Paul

    Change this
    <img src="<?php bloginfo('stylesheet_directory');?>/images/125x125.jpg" alt="ads" width="125" height="125" />

    to

    (if you are linking to a page on your own site)
    <a href="/membership/?cat=5"><img src="<?php bloginfo('stylesheet_directory');?>/images/myimage.jpg" alt="my image description" width="125" height="125" /></a>

    change width and height to what they are. If you want to keep the look of the theme, leave them at 125 x 125

    If you are linking to a link on another website, its like this
    <a href="http://somesite.com/thispage.htm"><img src="<?php bloginfo('stylesheet_directory');?>/images/myimage.jpg" alt="my image description" width="125" height="125" /></a>

    Take a look at Permalinks in the WP admin area, to get rid of links like this membership/?cat=5 and replace them with links like this
    membership/preschool

    Also, look at Pages. Pages are for static content, the equivalent of a page on a typical website. Posts are when you want more than one subject or topic on a page - that is represented by categories. You can mix posts and pages in WP.

  10. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve ,
    Thanks for the reply.
    Ok, I got the picture advertising section sorted, but cannot still see how to change the links in the renamed child development resources left sidebar?
    All I really need is to add a link to the forum I am going to create with simple press forum to the child development resources and remove all the other links.

    I checked the permalinks and it just says customize permalink structure and default of http://educationalchildsplay.com/membership/?p=123
    not sure what this means.

    Sorry to be a pain.

    Thanks again for your help.

    Paul in Calgary.
    The Child Development Guy.

  11. stvwlf
    Member
    Posted 3 years ago #

    cannot still see how to change the links in the renamed child development resources left sidebar?

    I assume those links are in your sidebar.php file.

    In that file you will see
    <li><a href="http://wordpress.org/development/">Development Blog</a></li>

    Change it to
    <li><a href="http://educationalchildsplay.com/membership/?cat=5">Paid Membership</a></li>

    and do the same for whatever other links you want in there. You can remove the WordPress links that are in the file.

  12. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    The links are not in the sidebar.php file
    This is the code in the sidebar.php

    
    <!-- begin sidebar -->

    <div id='menu-left'>

    <div class='menu1'>

    <h2><?php _e('Categories'); ?></h2>

    <li id="categories">

    <?php wp_list_cats(); ?>

    <li id="resources"><h2><?php _e('Child Development Resources'); ?></h2>

    * <?php get_links('-1', ' ', '
    ', '
    '); ?>

    <li id="syndication"><h2><?php _e('RSS Subscription'); ?></h2>

    * " title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">Entries RSS</abbr>'); ?>
    * " title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?>

    <li id="meta"><h2><?php _e('Administration'); ?></h2>

    * <?php wp_register(); ?> <?php wp_loginout(); ?>

    <?php wp_meta(); ?>

    </div>

    <div class='menu2'>

    <li id="advertisement"><h2><?php _e('Advertisement'); ?></h2>

    * <?php advertisement(); ?>

    </div>
    </div>

    <!-- end sidebar -->

    My site is here;
    http://educationalchildsplay.com/membership
    I changed this to child development resource

    <li id="resources"><h2><?php _e('Child Development Resources'); ?></h2>

    but my thinking is this part should be the list of links

    * <?php get_links('-1', ' ', '
    but I cannot find it?

    Any ideas?

    Thanks for your help

    Paul in Calgary.
    The Child Development Guy.

  13. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    There are two sidebar.php one in admin and one in the site theme. I have been adjusting the sidebar.php in the theme (centurian)
    here is the admin sidebar.php is this the one I should be adjusting:
    <?php
    $mode = 'sidebar';

    require_once('admin.php');

    if ( ! current_user_can('edit_posts') )
    wp_die(__('Cheatin’ uh?'));

    if ('b' == $_GET['a']) {

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
    <title><?php _e('WordPress › Posted'); ?></title>
    <?php
    wp_admin_css( 'global', true );
    wp_admin_css( 'wp-admin', true );
    wp_admin_css( 'colors', true );
    ?>
    </head>
    <body>
    <p><?php _e('Posted !'); ?></p>
    <p><?php printf(__('Click here to post again.'), 'sidebar.php'); ?></p>
    </body>
    </html><?php

    } else {

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
    <title><?php _e('WordPress › Sidebar'); ?></title>
    <?php
    wp_admin_css( 'global', true );
    wp_admin_css( 'wp-admin', true );
    wp_admin_css( 'colors', true );
    ?>
    <style type="text/css" media="screen">
    form {
    padding: 3px;
    }
    .sidebar-categories {
    display: block;
    height: 6.6em;
    overflow: auto;
    background-color: #f4f4f4;
    }
    .sidebar-categories label {
    font-size: 10px;
    display: block;
    width: 90%;
    }
    </style>
    </head>
    <body id="sidebar">
    <h1 id="wphead">WordPress</h1>
    <form name="post" action="post.php" method="post">
    <div>
    <input type="hidden" name="action" value="post" />
    <input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
    <input type="hidden" name="mode" value="sidebar" />
    <?php wp_nonce_field('add-post'); ?>
    <p><label for="post_title"><?php _e('Title:'); ?></label>
    <input type="text" name="post_title" id="post_title" size="20" tabindex="1" style="width: 100%;" />
    </p>
    <p><?php _e('Categories:'); ?>
    <span class="sidebar-categories">
    <?php dropdown_categories(); ?>
    </span>
    </p>
    <p>
    <label for="content">Post:</label>
    <textarea rows="8" cols="12" style="width: 100%" name="content" id="content" tabindex="2"></textarea>
    </p>
    <p>
    <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft'); ?>" />
    <?php if ( current_user_can('publish_posts') ) : ?>
    <input name="publish" type="submit" id="publish" tabindex="6" value="<?php _e('Publish') ?>" class="button button-highlighted" />
    <?php endif; ?>
    </p>
    </div>
    </form>

    </body>
    </html>
    <?php
    }
    ?>

    Thanks for all your trouble.

    Paul in Calgary
    The Child Development Guy.

  14. stvwlf
    Member
    Posted 3 years ago #

    Hi - The only files you want to modify are the ones in your theme

    wp-content/themes/{theme-name}/sidebar.php

  15. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    If I delete this in the centurian theme the list of links disappears

      //<?php get_links('-1', '

    • ', '
    • ', ''); ?>

    is this php get_links in the theme somewhere?
    If I just delete that part of the code, how do I just add links of my own with anchor text? i.e anchor text "Forum" linked to my wordpress forum page.

    Getting there slowly.

    Thanks for your patience.

    Paul in Calgary.
    The Child Development Guy.

  16. stvwlf
    Member
    Posted 3 years ago #

    Hi

    I just remembered, those links are in the WP links system - its one of the options on the vertical navigation in the admin section. You can delete the WP ones and insert your own. including ones on your site. Include a full URL when you enter anything there, starting at http://, even for links on your own site.

  17. paulmackie
    Member
    Posted 3 years ago #

    Hi Steve,
    Ok that's got it. It's in the manage links. I will restore the code, then delete the links and add my own.

    Thanks for all your trouble.

    If you have preschool kids email me at paulmackie@lycos.com subject "Storybooks" and I will send you some of my children's storybooks for all your trouble.

    Thanks so much.

    Have a great night.

    Paul in Calgary.
    The Child Development Guy.

Topic Closed

This topic has been closed to new replies.

About this Topic