• Hi all,

    I am trying to use just a line of code in the posts I need this done to so I can change it easily and so anyone else that has access to our site can also easily change it… so it can’t be done to the stylesheet/template…

    What I’m doing is trying to keep the title on the post for being able to locate it easily in the dashboard (untitled posts are listed with no titles you know?) but not to show on the post itself.

    I used a very basic line of code to remove the title without the post id but then the titles disappeared for all the posts in the categories it was in.

    So, I changed it to make it post specific. So now, the title when you are on that post is hidden, but when it shows up in the list of posts in the categories, the title is there… honestly, the opposite would be better if I can only have it one way lol but I’d like to have the title not show ever, but the other titles in the categories still show…

    I only want the specific post to be sans header.

    This is the line of code I’m using…

    <style type = 'text/css'> .postid-43558 .title  { display: none !important; } </style>

    Can anyone help me with this? What do I need to add to this to keep the title suppressed even when the post is pulled up in a category with all the other posts in that category?

    [ Please do not bump, that’s not permitted here. ]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter poppiesblooming

    (@poppiesblooming)

    Can this be added to the advanced forum? I do need to find a solution for this. ??

    this is not an advanced problem.

    however, your question seems to need some clarification:

    – where do you not want to show the post title?
    — on the single post?
    — for the post in category archives, etc?

    – is this for various posts on a post-to-post basis?

    – what theme are you using?

    – can you post a link to your site (or a few links pointing to the various posts or archives you were talking about) to illustrate the problem?

    Thread Starter poppiesblooming

    (@poppiesblooming)

    OK, sorry about that!

    I actually don’t want these select posts to have their titles show ever.

    I don’t want to remove ALL post titles, just these and it needs to be something EMBEDDED in the post so that the other people on our site are able to edit it. The problem is while it doesn’t show on the post when selected, when pulled up by a category it IS showing up- which I do not want it to.

    It is for various post by post basis, but needs to be IN the post code so any of the people on our site can edit if need be, not just me.

    Theme is Magnificent

    Can I send you a PM with the site info?

    Can I send you a PM with the site info?

    no – for this level of support, you possibly need to post a job at https://jobs.wordpress.net/

    as ‘Magnificent’ seems to be a commercial theme by elegantthemes, you might also want to try to contact them for support.

    one general possibility is to use a custom field as a marker for showing/hiding the post title;

    the code in the pastebin would add a tick box input below the post editor; add the code into functions.php of your theme:
    https://pastebin.com/DvtcNsHf

    before any edits, make sure to have backup copies of all your theme files.

    Thread Starter poppiesblooming

    (@poppiesblooming)

    ok, so to add that code you pasted, that would put a box people when setting up a post can just tick? That would be much easier… where would I put that code though? Sorry, I just want to make sure it is in the right place…

    basically anywhere into functions.php as long as you don’t violate any php rules;
    possibly best just before the last ?> right at the end;
    or right at the end if there is no ?>

    Thread Starter poppiesblooming

    (@poppiesblooming)

    Hi,

    I am using this line of code embedded in the post code for my posts that I don’t want the title to show (I’d like to still be able to see them in the dashboard with their title).

    <style type = 'text/css'> .postid-43558 .title { display: none !important; } </style>

    The problem is, that this post is being put in many different categories that are pulled from the menu and when you are scrolling down the page, the title does show there. So, not showing in the post’s view but it is when that post is pulled up in a category.

    Can I add to this line of code to also hide it in category view? I can’t add it to the stylesheet because I need it editable by all the users of the site and they don’t have access to the stylesheet.

    Thread Starter poppiesblooming

    (@poppiesblooming)

    Can this topic be moved to whichever forum it would be best suited for? I am hoping for someone to reply since my newer topic was closed.

    [ Please do not bump, that’s not permitted here. ]

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide Title on Post but still shows when pulled up in Category’ is closed to new replies.