Hiding page name

Home Forums Reykjavik Hiding page name

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17806

    electricblue
    Participant

    Hiding page name

    Resolved

    Dear Oliver

    I have just created a website and I’m using your Reykjavik theme, which is fantastic.

    I have been struggling to remove the automatic text displaying the page name (for example, the white word “Home” on top of the shark image in the welcome page of the site http://www.electricblue.eu), but with no success.

    I tried adding this code to the custom css field but I must be making some mistake.

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

    Can you please provide me with some clue?

    Thank you for your time

    Fernando Lima

    #17807

    electricblue
    Participant

    Hi again,

    I just found it!

    .intro-special .intro {
    display: none;
    }

    However, this only changes the main page. What about the others? Can I remove all titles with a piece of code?

    Thank you in advance
    Fernando Lima

    #17811

    Oliver Juhas
    Keymaster

    Hi Fernando,

    First, please note it is not advisable to remove page titles everywhere.

    The theme actually provides you with a page template which will hide the intro section accessibly and thus it won’t affect your SEO or accessibility. Please read more in theme documentation at https://webmandesign.github.io/docs/reykjavik/#page-templates

    If you really want to not display page intro on your website, the best is to use this code in your child theme‘s functions.php file:

    function child_theme_setup() {
      add_filter( 'wmhook_reykjavik_intro_disable', '__return_true', 100 );
    }
    add_action( 'after_setup_theme', 'child_theme_setup', 100 );

    Alternatively you can hide the intro section using this custom CSS:

    .intro-container {
      clip: rect( 1px, 1px, 1px, 1px );
      position: absolute !important;
      height: 1px;
      width: 1px;
      line-height: 1px;
      overflow: hidden;
    }

    Best regards,

    Oliver Juhas
    WebMan Design

    #17813

    electricblue
    Participant

    Thank you!!!

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

You must be logged in to reply to this topic.