• Resolved Khunchay

    (@khunchay)


    Hello there,

    I like to change domainname.com/category/ into domainname.com/c/ but where to modify this?

    Not sure if this is theme related or not.

    Thanks!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Khunchay. Can you be more specific about where you’d like to change this? Also posting a link to your web site with a specific example would be helpful. Thnaks.

    Thread Starter Khunchay

    (@khunchay)

    Hey bdbrown,

    The category url of the category pages I would like to change into something shorter, eg. like just /c/ in stead of /category/.

    Thanks!

    The best option would be to use a child theme and copy wp-content/themes/hueman/inc/page-title.php to wp-content/themes/your-child-theme/inc/page-title.php and locate the following lines:

    <?php elseif ( is_category() ): ?>
    	<h1><i class="fa fa-folder-open"></i><?php _e('Category:','hueman'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>

    And change this:

    ('Category:','hueman')

    to this:

    ('C:','hueman')
    Thread Starter Khunchay

    (@khunchay)

    Thank you I will check this out. Although I have no experience with child themes not even know what it is for.

    Regards ??

    Here’s a good explanation of why you use a child theme:

    Creating a child theme when performing adjustments to your theme’s code can save you a lot of future headache. Child themes allow you to make changes without affecting the original theme’s code, which makes it easy to update your parent theme without erasing your changes. By creating a child theme, you create a separate set of files that you can use to customize the theme without affecting the original theme at all. Not only does this make updating easier, it also makes sure that you will never ruin your original theme as you are never actually modifying the files. You can always turn off your child theme and fall back on the original.

    Creating a child theme with Hueman is pretty easy:
    1. In Theme Options click the Help tab in the upper righthand corner.
    2. One of the options in the list is to download a sample child theme. This downloads the theme zip file to your local computer.
    3. Install the new theme in your Admin panel by selecting Add New > Upload Theme > Choose File, then select the zip file you downloaded.
    4. Activate the child theme.
    You’ll now have a pre-configured child theme with a style.css file and functions.php file to which you can add customizations. You would copy the file as I indicated above and make the change in the file in your child theme.

    Thread Starter Khunchay

    (@khunchay)

    Great information, thank you!

    I found a very simple way to change the word /category/, just via Settings > Permalinks > Category base

    That’s it ??

    You’re welcome. Glad you were able to get it fixed. If you don’t need any further assistance with this topic please mark it as Resolved. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change domainname.com/category/ into a new name?’ is closed to new replies.