Category Description Showing On Menu - by codaye

This topic has 10 replies, 4 voices, and was last updated 8 years, 2 months ago ago by Robert Hall

  • Avatar: codaye
    codaye
    Participant
    September 30, 2016 at 12:01

    Hello, the description of the category appears on the menu and I need to know how to edit that out. I know I can remove the description, but my client insists on leaving that in for SEO reasons.

    Where can I remove that feature please? I have never come across this problem before.

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 30, 2016 at 12:19

    Hello,

    Go to Appearance > Menus > Screen Options at the top and select “Description”. Then open menu item where you see description and remove it.

    Best regards,
    Jack Richardson.

    Avatar: codaye
    codaye
    Participant
    October 3, 2016 at 23:02

    Hello,

    I explicitly stated that I know I can remove the description, but my client wants it left in for SEO reasons. Usually, category description does not show up as a menu name.

    The way descriptions are prepended to the menu name makes it unreadable.

    Please suggest a fix on how to remove from menu without deleting the content of the category description.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 4, 2016 at 07:58

    Hello,

    You need edit the \wp-content\themes\royal\framework\theme-functions.php file on line 3753
    Find the following code
    $item_output .= $description;
    and replace with
    $item_output .= '<span style="display:none;">' . $description . '</span>';

    Regards,
    Robert Hall

    Avatar: codaye
    codaye
    Participant
    October 4, 2016 at 10:03

    Thank you so much for your prompt and helpful response. Sorry if I was snarky earlier. I apologize

    Applying your fix gave me the following error.
    Parse error: syntax error, unexpected '&' in /home/norcam4/ahiaonline.com/wp-content/themes/royal/framework/theme-functions.php on line 3750

    Fixing the error sent me on a rollercoaster of other errors. Please help.
    Error Message

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 4, 2016 at 12:00

    Hello,

    Please provide FTP credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: codaye
    codaye
    Participant
    October 4, 2016 at 13:25

    Check private content. Thanks

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 4, 2016 at 14:10

    Fixed. Please check it.

    Regards,
    Robert Hall

    Avatar: codaye
    codaye
    Participant
    October 4, 2016 at 14:15

    Thank you Robert and the rest of the team. I will rate your theme with a 5

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 4, 2016 at 14:31

    You are welcome! We are glad to help you!

    Regards,
    Robert Hall

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

The issue related to '‘Category Description Showing On Menu’' has been successfully resolved, and the topic is now closed for further responses

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