• Resolved Mikeatgoodlife

    (@mikeatgoodlife)


    I am using Category Posts in Custom Menu widget with Max Mega Menu.
    It works fine, except I would like to delete the post date and post comment section, as that info takes up a lot of space in the menu area.

    Plus, if possible, I would like to put post headline in bold.

    Suggestions?
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Mikeatgoodlife

    (@mikeatgoodlife)

    I should add you can see my site at
    https://www.ncwgoodlife.com or https://www.bloggingthegoodlife.com

    Plugin Author Diana van de Laarschot

    (@anaid)

    Hi Mike,

    I’m not sure what Max Mega Menus does here.

    For category posts in custom menu, you can use HTML markup to make the headline bold.

    To not show the date and comment section, you would simply refrain from using %post_date and %post_comment_count wildcards.

    Kind regards,
    Diana

    Thread Starter Mikeatgoodlife

    (@mikeatgoodlife)

    Hi, Diana
    I just took a look at the code for your Custom Posts, and admire the brain it took to write it.
    So I don’t screw things up, where exactly should I make the changes to delete date and comments? Perhaps if you can just copy that section to a message with a rule through what is to be deleted, that would work for me.
    (I removed these lines, but to no effect:
    $string = str_replace( “%post_comment_count”, $post->comment_count, $string);

    $string = replace_dates($post, $string);

    Also, where should I add <b> to get the headlines bold?

    thanks
    Mike

    Thread Starter Mikeatgoodlife

    (@mikeatgoodlife)

    Diana

    I got this, after much trial and error.
    Thanks,
    Mike

    Plugin Author Diana van de Laarschot

    (@anaid)

    Hi Mike,

    I’m surprised you had to go into the plugin code to do this… I really wonder at what Max Mega Menus does under the hood, because my plugin never forces the comments or date sections into the menu, it’s all based on what is entered in Appearances > Menus.

    Anyhow, glad it worked for you!

    Kind regards,
    Diana

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove date and comment section’ is closed to new replies.