Hide page title on mobile

  • Author
    Posts
  • #51810
    dgweb2016
    Power User

    I’d like to hide certain page titles for desktop and mobile.
    I managed to hide them on desktop with the following CSS:

    .page-id-2774 .entry-title {
    	display: none;
    }

    The title is hidden on desktop but is still visible on mobile devices.
    How can I hide the title for mobile devices aswell? Preferebly with CSS.

    Website: diegewissen.de

    #51875
    Zed
    Cryout Creations Team

    I assume you’re referring to the pool page. What mobile browser/device are you seeing its title on?


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #51879
    dgweb2016
    Power User

    Here is an exmaple page:
    http://diegewissen.de/test-seite/

    The title is sucesfully hidden on Firefox (Desktop), Chrome (Desktop), Edge (Dekstop) and Chrome (Android).
    I can see the titel on Firefox (Android) though.

    Website: diegewissen.de/test-seite

    • This reply was modified 2 years ago by dgweb2016.
    #52377
    Zed
    Cryout Creations Team

    I’m not seeing the same

    As you are using a caching plugin, that may have something to do with it.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #53300
    dgweb2016
    Power User

    Sorry for this late reply.
    Now I do see the expected result. It was propably due to the cache.
    Thanks a lot.

    • This reply was modified 2 years ago by dgweb2016.
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Hide page title on mobile’ is closed to new replies.