Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thank you @anevins! Solved my issue (now that I finally found THIS post – posted my own thread but didn’t get any solution)

    Thread Starter Smartman Apps

    (@smartmanapps)

    Ah, ok. I didn’t realise “Storefront” was a theme (thought maybe it was a sub-forum name or something).

    I just recently discovered the “Additional CSS” method in amongst my trawling for this issue – I tried pasting the code from that Storefront thread into Additional CSS, and it did have an effect! 🙂 Only problem was it was on my logo, not my header. 🙁 How would I alter that code to make it apply to my header? I tried changing .site-logo-link to .site-header-link, but that wasn’t it.

    Thanks!

    Thread Starter Smartman Apps

    (@smartmanapps)

    I have found this thread, which may also help (as I would also be happy to just have my logo resize according to the screen size), however again I don’t know where the code goes. Someone asked that very question in the thread 5 months ago and it went unanswered – can someone tell me where the code in that thread should be placed? (I went to line 797 in Twenty Seventeen’s style.css, but there is completely different code there – stuff to do with typography in other languages)

    https://wordpress.org/support/topic/storefront-how-to-change-logo-size-for-mobile/

    Thread Starter Smartman Apps

    (@smartmanapps)

    Or another solution – the reason I’m on this track to begin with is that the way Twenty Seventeen is dealing with different screen sizes is it shows a smaller portion of your header on smaller screens. None of the themes I looked at had more than 1 header image, but maybe some of them resize it to still show the full image on smaller screens? If there are such themes/plugins, what would be the technical keywords to be looking for to find them? (I don’t really want to spend my time trying out 270 themes individually to see if any of them do it, especially if none of them do).

    Thread Starter Smartman Apps

    (@smartmanapps)

    Or here’s another solution – a different image based on the device (smaller image for smaller screens). I know from programming in Xamarin that you can find out what device you are on, but I’m not sure if there’s a way to do it in PHP?

    Thread Starter Smartman Apps

    (@smartmanapps)

    In ./wp-content/themes/twentyseventeen/header.php I found the following code…

    <header id=”masthead” class=”site-header” role=”banner”>
    <?php get_template_part( ‘template-parts/header/header’, ‘image’ ); ?>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    …which looks like what I’m looking for. I don’t know where ‘image’ is defined though (and too generic a word to be able to do a search for it – would be like looking for a needle in a haystack) – if I can find that then I can start hacking it.

    • This reply was modified 8 years, 10 months ago by bdbrown.
    Thread Starter Smartman Apps

    (@smartmanapps)

    I haven’t been able to find my header image by searching the php files in the website folders,so it must be known by another name (than it’s actual name). Some help to find where it might be would be good. :-\

    Thread Starter Smartman Apps

    (@smartmanapps)

    “Are you actually using the 2016 theme?”

    As mentioned previously, I am using Twenty Seventeen at the moment, but can change to another if it’ll support what I want to do.

    “Have you considered adding a gallery to a static front page on your site?”

    I hadn’t, but I have now – it places the gallery in the text section of the Home page, not in the header. The only options for editing the header are an image or a video. I’ve scrolled through 270 themes that support custom header, and none of them have more than 1 image. Some have multiple posts across the top, but I just want images, not posts (plus they cost >$100!).

    Now that I have some code for a gallery, I just have to work out where I would put it to make it appear in the header instead of on the Home page. This is why I posted in Developing – it will need this code added to one of the PHP files, and I don’t know enough about PHP yet to know which file and where (I’m now going to see if I can find a file which is referencing my current header image…).

    Thread Starter Smartman Apps

    (@smartmanapps)

    ” Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics ”

    The info for the Developing forum says “For those looking to do more advanced things with WordPress”, which is exactly what this post is about, and is why I posted it there. I’m not trying to FIX WordPress – it’s not broken – I’m trying to find out how to do something more advanced. Don’t know if any of the right people are going to see it in here…

Viewing 9 replies - 1 through 9 (of 9 total)