• 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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

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

    Thread Starter curt-gideon

    (@curt-gideon)

    Not the categories but the actual name CATEGORY?

    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?

    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

    Wow, that worked for me! Thanks Wes.

    dvwp

    (@dvwordpress)

    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.

    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);

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘change the name category to gallery’ is closed to new replies.