disable one specific author box

Posted in: Newsmag
Post count: 10

Hi:

I want to disable one specific author box. We have a default “Staff Reports” that we won’t have a bio for. However, we want it to show for our columnists.

Thanks!

Post count: 23312

Hello NewBuffaloTimes,

If you want to disable one specific author box for a specific page, you should use a bit of CSS code with the certain post page ID, like this -> https://www.screencast.com/t/hV9Yvuc1GxQE

If is not what you mean, please provide more details so I will be able to provide a more accurate response.

Thanks for the message!

Post count: 10

Hi:

Thanks for the fast response. It is one specific author, a generic catchall called New Buffalo Times staff – but many, many posts on an ongoing basis so it would be better if there is a way to add code that says anytime its from this author, don’t display box.

Here is a sample for that author:
http://626.377.myftpupload.com/author/newbuffalotimes/

versus an actyal author where we have a bio etc.
http://626.377.myftpupload.com/2017/01/12/958/

Thanks

Post count: 23312

Hello NewBuffaloTimes,

Here is talking about two different elements. In the first example, is an author box feature which can be added from Visual Composer -> https://www.screencast.com/t/7j7LgkZPCrg and which displays all the authors and in the second example, is talking about the author box from the single post which shows only the post author.
Notice that the theme does not have any such an option for your desire, but if you want to do that, you should edit the Author Box and add what type of code you want. Notice that if you do not have solid coding skills in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Post count: 10

Hi Catalin:

Apologies. I’m still confused. In the examples I sent you here – http://626.377.myftpupload.com/2017/01/12/958/
I did not add either author box via visual composer. In both cases, it is the author attribute based on the user section so it automatically apends to any post to which I assign that author. Is there no way to assign the author role but just not have the box automatically show at the end of the post for a given author?

Hope this is a bit clearer.

Thanks

Post count: 23312

Hello NewBuffalo Times,

I guess that you want to remove the author box for a certain post, right? So, if you want to do this, you should use the code below and place it in Theme panel->Custom CSS area.

The code is ->

.postid-958 .author-box-wrap{
display:none!important;
}

The result is here -> https://www.screencast.com/t/DhtYjMwTHaq

Thanks for your understanding!

Post count: 10

hi Catalin:

I want to remove the automatic author box for a certain author.

Thanks.

Post count: 23312

Hello NewBuffaloTimes,

Unfortunately, our theme does not have any such an option for this, sorry! If you want to achieve this, you should make some adjustments in the code nad add a snippet of the code which adds a new extra class at the author box wrap. You should edit the td_module_single_base.php core field and you should do this -> https://www.screencast.com/t/lAjMJPl7 The snippet of the code which has to be concatenated is here ->
. get_the_author_meta('display_name', $author_id) . ' After these changes, you should use a bit of CSS code and hide the author box for your certain author. Try the code below and place it in Theme panel->Custom CSS area.

The code is ->

.author-box-wrap.ziar_6{
display:none;
}

The result is here-> https://www.screencast.com/t/yDtNzUECOB

Thanks for your understanding!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.