Support » Theme: Link » Homepage header

  • Resolved jaylegend

    (@jaylegend)


    Hi – First, I’m a huge fan of your work! You’ve allowed me to learn so much more about bootstrap and PHP by not making your theme cookie cutter and open it up to easily allow someone to customize and build a unique site leveraging your product as the framework. Thank you.

    One area I am having some difficulty is with removing the header text (Site name/tagline) from the header area of the homepage. I am uploading an image with static text for JUST the homepage header, so need to remove the existing text that appears. I do NOT need to remove it though from the header of the internal pages.

    I’ve searched through every possible PHP file looking for ways to hide or remove, but am hitting a dead end. Any support you can provide is greatly appreciated!

    Also, this might be a bit more complex, but looking to add a logo image to the top left of the header. I could make static in the header image file, but then it would look too small on mobile. Is there a bit of code you could provide that would help allow for this?

    Thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jaylegend

    (@jaylegend)

    so think I found a “bootleg” fix, but I’m sure it’s not the proper way to solve for the first issue.

    I located the following code in the LINK CSS file and changed to “font-size: 0px;”

    }
    .cover-image h1 {
    font-size: 100px;
    font-weight: 500;
    }

    Then I removed the site tagline and no more text appears on the homepage header. Downside to this is that there is no tagline included now for search, site title, etc. so need to resolve that piece with a more appropriate fix : )

    Thanks

    Theme Author Tim Nicholson

    (@timnicholson)

    Hi Jay. Thanks for the kind words! Yes, the theme is designed where if you leave the featured image title and caption blank, it pulls in the site title and tagline. CSS is a good way to hide it, but it sounds like you only want to hide the text on your home page. So you can do it like this:

    .home .header-image-title, .home .header-image-caption {
    	display: none;
    }

    This shouldn’t effect search engine optimization too much because the meta tags on the page will still list your site name and tagline. You could also go into the advanced image options for the featured image and put those things in the image alt tag as well.

    Theme Author Tim Nicholson

    (@timnicholson)

    BTW, if you prefer to edit the php, the code that controls this is in content-header.php… but CSS is better, especially if you use the Jetpack plugin’s “custom css” feature. Then you can upgrade the link theme without any issues when I release the next version of it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Homepage header’ is closed to new replies.