This forum is now closed to new posts
All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.
It’s not a plugin. I only asked here because I assumed it was included as part of the Newsmag theme. I’ll investigate more and see if I can figure out where it’s coming from. Thanks!
Hi Andrei,
Thank you! Your solution was much simpler and more elegant than my clumsy attempt. 🙂 However, I did have to remember to take the extra step of going back in to the Theme Panel again and ticking the ‘Show Author Box’ option there in order for this to work. I had turned that off, before. Now, it seems to be properly showing the author box on my ‘blog’ categories posts only.
Thanks again for your help, and for your quick response. I hope that there will be some way that Newsmag theme can one day soon enable us to do this from the theme options panel. Until then, thank you for the custom code I needed to do this.
Have a nice day!
Just tried this and doesn’t work:
if (empty($hideAuthor) || td_util::get_option('tds_show_author_box') == 'hide' && is_category( array( 65, 84 )))
{
$buffy .= '<div class="author-box-wrap">';
$buffy .= '' ;
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '96');
$buffy .= '';…. etc.
Oops, I looked at this again and realized I am trying to change the wrong condition. I’ve asked the theme to hide the author box in the theme panel, but I’m adding my instruction to the code with the author box NOT hidden line. So, I added
if (td_util::get_option('tds_show_author_box') == 'hide' && is_category( array( 65, 84 )))
{
to line 706, so it looks like this:
if (empty($hideAuthor))
if (td_util::get_option('tds_show_author_box') == 'hide' && is_category( array( 65, 84 )))
{
and it still doesn’t work. * bangs head on desk *
I am not a PHP coder by any stretch, so if someone with more knowledge could point me in the right direction, I’d be grateful. I feel like I have the right idea but the execution is wrong.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-advertisement | 1 year | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement". |
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| Cookie | Duration | Description |
|---|---|---|
| _ga | 2 years | This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors. |
| _gat_gtag_UA_43963494_1 | 1 minute | This cookie is set by Google and is used to distinguish users. |
| _gid | 1 day | This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form. |
| Cookie | Duration | Description |
|---|---|---|
| IDE | 1 year 24 days | Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile. |
| test_cookie | 15 minutes | This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies. |
| VISITOR_INFO1_LIVE | 5 months 27 days | This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website. |
| YSC | session | This cookies is set by Youtube and is used to track the views of embedded videos. |
| Cookie | Duration | Description |
|---|---|---|
| CONSENT | 16 years 5 months 26 days 13 hours 25 minutes | No description |
| yt-remote-connected-devices | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |
| yt-remote-device-id | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |