Tagged: x
-
AuthorPosts
-
January 11, 2017 at 9:54 am #1325702
opinsystemsParticipantI 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
January 11, 2017 at 11:14 am #1325838
RupokMemberHi 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.
January 11, 2017 at 12:30 pm #1325961
opinsystemsParticipantThanks, here is a screenshot of a byline like what I would like to create.
January 11, 2017 at 7:22 pm #1326456
RadModeratorHi 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!
January 12, 2017 at 8:59 am #1327249
opinsystemsParticipantSure…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!
January 12, 2017 at 11:40 am #1327473
RupokMemberHi 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!
January 12, 2017 at 4:17 pm #1327832
opinsystemsParticipantThanks. That worked for the single post…any way to get it to work on the blog digest page?
January 12, 2017 at 6:02 pm #1327923
NicoModeratorHi 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.
January 12, 2017 at 6:43 pm #1327936
opinsystemsParticipantWorked perfectly. Thanks so much!
January 12, 2017 at 10:38 pm #1328271
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1325702 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
