WordPress.org

Ready to get started?Download WordPress

Forums

change the name category to gallery (9 posts)

  1. curt gideon
    Member
    Posted 5 years ago #

    I'm new at this and I'm trying to change the word category to gallery for my drop down menu to my different photo's, someone told me its part of the template?

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

    You can change the category name from wordpress admin area and if you would like to change for the posted posts then you need to click on edit post and click on category [word] select all posts..select edit from top edit box and change the category..

    Thanks,

    Shane G.

  3. alchymyth
    The Sweeper & Moderator
    Posted 5 years ago #

    in admin -> settings -> permalinks: optional : category base

  4. curt gideon
    Member
    Posted 5 years ago #

    Not the categories but the actual name CATEGORY?

  5. alchymyth
    The Sweeper & Moderator
    Posted 5 years ago #

    that's what i mean:
    go into 'admin';
    goto 'settings' - 'permalinks';
    under 'optional - category base' change the name from CATEGORY to GALLERY.

    see this quote from wordpress admin:

    Optional
    If you like, you may enter custom structures for your category and tag URLs here. For example, using topics as your category base would make your category links like http://example.org/topics/uncategorized/. If you leave these blank the defaults will be used.

    is that not what you want?

  6. eagleslife
    Member
    Posted 4 years ago #

    to change the sidebar / widget headings (i.e. Category, Meta, Archives, Blogroll) to some other names :

    1. make a backup copy of the file 'default-widgets.php'. You will find that file in the /wp-includes folder. Save it in secure place outside of the WP folders.

    2. edit the file 'default-widgets.php' using a text editor, or Dreamweaver (which is what I use) or similar program. You need to find the commented code for each sidebar heading that you want to change. Example: to change the "Categories" heading look for the commented code that says - * Categories widget class. In Dreamweaver CS4 this is around code line number 415.

    3. next, edit each occurrence of the word 'Categories (note: the actual text is preceded with a single quote) to be whatever you want to change to. Example: change the word 'Categories to 'Departments. You will find several instances of the word 'categories, but the specific text that displays in your web site sidebar is the text that has the capital letter at the start of the word. (i.e 'Categories). The word 'categories that are in all lower case are for changing the Admin>Widgets display.

    4. ONLY change the text that has a {'} single quote before it. Again, the text that starts with a single quote followed by the word Categories with a capital letter C, is the sidebar heading that is likely to be what you want to change.

    5. if something goes wrong or you want to revert back to the WP default, just use your back up file copy to restore.

    you can repeat the above steps for changing the other sidebar heading changes that come standard in WP.

    as always, be careful changing this file, keep a good backup copy of the original, test each change before proceeding to the next.

    Wes

  7. lynda2
    Member
    Posted 4 years ago #

    Wow, that worked for me! Thanks Wes.

  8. dvwp
    Member
    Posted 4 years ago #

    a side note:

    if you are using a plugin to re-order you categories, or a tag cloud, you will need to carefully find the right place in the plugin files to make the changes appear properly.

  9. bouncecouncil
    Member
    Posted 4 years ago #

    THIS ISNT WORKING FOR ME. IF I WANTED TO CHANGE Categories TO DISPLAY Music and Mixes ARE YOU SAYING TO CHANGE THE LINES OF

    /**
    * Categories widget class
    *
    * @since 2.8.0
    */
    class WP_Widget_Categories extends WP_Widget {

    function WP_Widget_Categories() {
    $widget_ops = array( 'classname' => 'widget_categories', 'description' => __( "A list or dropdown of categories" ) );
    $this->WP_Widget('categories', __('Categories'), $widget_ops);
    }

    function widget( $args, $instance ) {
    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base);

    TO

    /**
    * Categories widget class
    *
    * @since 2.8.0
    */
    class WP_Widget_Categories extends WP_Widget {

    function WP_Widget_Categories() {
    $widget_ops = array( 'classname' => 'widget_categories', 'description' => __( "A list or dropdown of categories" ) );
    $this->WP_Widget('categories', __('Music and Mixes'), $widget_ops);
    }

    function widget( $args, $instance ) {
    extract( $args );

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Music and Mixes' ) : $instance['title'], $instance, $this->id_base);

Topic Closed

This topic has been closed to new replies.

About this Topic