WordPress.org

Ready to get started?Download WordPress

Forums

removing this weird text (3 posts)

  1. BLuu123
    Member
    Posted 2 years ago #

    I made my own theme, but it has these weird text that I dont know how to fix. this screen shot explains it.
    http://www.freeimagehosting.net/9bwot
    Its a side bar, here is the code from sidebar.php
    what do I do to remove it?

    <div id="sidebar">
      <ul class="sidebar2">
      <?php wp_list_pages('type=postbypost&limit=6&format=custom');?>
      </ul>
    </div>
  2. Gtantra
    Member
    Posted 2 years ago #

    If your sure - you need to remove it then the steps are :
    -log into the dashboard
    -go to Appearance -> Editor
    -remove it from the file and click update

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    to remove just the circled-red part (the word 'pages'), try to add the 'title_li' parameter;
    http://codex.wordpress.org/Function_Reference/wp_list_pages

    this will change the html structure a bit - http://codex.wordpress.org/Function_Reference/wp_list_pages#Markup_and_styling_of_page_items - so you might need to adapt the css.

    example:

    <?php wp_list_pages('title_li=&type=postbypost&limit=6&format=custom');?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.