Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1325702
    opinsystems
    Participant

    I have seen some conversation regarding this, but I haven’t seen anyone looking to just replace “Category” and “Comments” on the blog byline with a link. One topic talked about modifying the functions.php file (which would mean creating a child theme). Is that the only way to do this? If wo, what would the code be for the functions.php file? (Perhaps I would just save the code and re-apply after an update, since this would be my ONLY need for a child theme.) Can you help me with this? Thanks!

    soarhq.com

    #1325838
    Rupok
    Member

    Hi there,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #1325961
    opinsystems
    Participant

    Thanks, here is a screenshot of a byline like what I would like to create.

    #1326456
    Rad
    Moderator

    Hi there,

    I assume you’re referring to post meta, it’s only possible through child theme’s functions.php, but I’m not sure what code since it’s specific to stack. Would you mind providing your site’s URL? And what link should be added?

    Thanks!

    #1327249
    opinsystems
    Participant

    Sure…I actually included it on my first post. soarhq.com I am on the Renew stack, and as yet have not created a child theme. THanks!

    #1327473
    Rupok
    Member

    Hi there,

    Thanks for writing back. It will be possible with Child Theme and you should not touch the parent theme files in any case. However I replacing the category with a link is not usual but I can help you to hide the category and comments from meta with some CSS. You can add this under Custom > CSS in the Customizer.

    .single-post .p-meta > span:nth-child(3), .single-post .p-meta > span:nth-child(4) {
      display: none;
    }
    .single-post .p-meta > span:nth-child(2):after {
      display: none;
    }

    Cheers!

    #1327832
    opinsystems
    Participant

    Thanks. That worked for the single post…any way to get it to work on the blog digest page?

    #1327923
    Nico
    Moderator

    Hi There,

    You could change the .single-post class into blog page or the digest page class.

    for example:

    .blog .p-meta > span:nth-child(3), .blog .p-meta > span:nth-child(4) {
      display: none;
    }
    .blog .p-meta > span:nth-child(2):after {
      display: none;
    }

    Let us know how it goes.

    Thanks.

    #1327936
    opinsystems
    Participant

    Worked perfectly. Thanks so much!

    #1328271
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1325702 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>