Set a specific number of tags - by klxtl

This topic has 6 replies, 3 voices, and was last updated 9 years ago ago by Eva Kemp

  • Avatar: klxtl
    klxtl
    Participant
    April 13, 2015 at 18:24

    Hello, I had a quick question in regards to the tags on my site. On the foooter of my website I have a section that says Eyewear Tags, its a widget in which the tags are being showcased, how is it that I can set it to show only a number of tags. Like 8 tags for example, because basically right now, it is showing all of the category tags of my store. website and details on private content.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 14, 2015 at 09:05

    Hello

    Please create the Child theme. Royal Child theme folder comes within zipped package from themeforest. You may read about Child theme here. Then please add following code to the function.php in Child Theme:

    function my_widget_tag_cloud_args( $args ) {
    	$args['number'] = 20;
    	return $args;
    }

    Where 20 is number of the tags to display.

    With best regards
    Brian Johnson

    Avatar: klxtl
    klxtl
    Participant
    April 15, 2015 at 00:54

    Hello,

    that did not work. Please advice me.

    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 15, 2015 at 08:12

    Please provide us with ftp credentials as well.

    With best regards
    Brian Johnson

    Avatar: klxtl
    klxtl
    Participant
    April 15, 2015 at 19:20

    FTP details provided in private content. Thank you.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    April 15, 2015 at 20:15

    Hello,

    I’ve edited the file category-template.php in the directory wp-includes on line 594 and changed the code 'number' => 45, to 'number' => 8,, so now you have 8 tags displayed in the footer.
    Please check.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.