Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
RiaS
tagDiv Member

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!

RiaS
tagDiv Member

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!

RiaS
tagDiv Member

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.

RiaS
tagDiv Member

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.

Viewing 4 posts - 1 through 4 (of 4 total)