#wordpress 2018-02-28
2018-02-28 UTC
[kevinmarks], brokaw, tantek, [tantek] and [eddie] joined the channel
tbbrown, [miklb], brokaw, [jeremycherfas], jeremycherfas, jeremych_ and [pfefferle] joined the channel
# [pfefferle] good morning
# jeremych_ Hello Mattias.
# [pfefferle] hey jeremy
# jeremych_ Just downloaded the latest build of ZenPress; hope to have time to adapt my child theme later today. In particular need to look at #primary and the sizing of the hero image, both things I want to adjust.
# [pfefferle] cool
# [pfefferle] I changed the handling of the stylesheet a bit, to load only the styles for the matching screen size…
# [pfefferle] to save bandwith 😉
# [pfefferle] to use the @import, you should add the screen size like `@import url(“shetland.css”) screen and (max-device-width: 480px);`
# jeremych_ Thanks
# [pfefferle] Let me know if you need some help… I would love to see some childthemes
# jeremych_ Sure
[kevinmarks], brokaw, jeremycherfas, tbbrown, tbbrown_, [eddie] and [dgold] joined the channel
# jeremycherfas Need help understanding the use of get_header_image() in WP. ZenPress uses it to set up some inline CSS that displays a hero image at the top of the Home Page. However, because it is loaded from index, I do not seem to be able to override in my child stylesheet.
# jeremycherfas I can see where in functions.php the presence of header_image is being picked up. But I cannot see how to provide a header image but override the way ZenPress adds it to the <head>
# jeremycherfas The site is https://www.fornacalia.com
wagle_, petermolnar_ and [miklb] joined the channel
# [miklb] I’ve been looking at `get_header_image` and it is confusing how it works. As to overriding it, I _think_ you can make your own call to `header_image` in your child theme to override the params set in parent theme. As to how parent theme loads it as a background image, I believe that’s being done for a better responsive image, but haven’t looked at where that function is.
# jeremycherfas There seems to be a complex relationship between the header image and putting in the HEAD. I suppose I could hard code the URL of the image in my child theme's functions.php and override that way.
# jeremycherfas But I think it may be simpler to put my own call in the correc template.
# jeremycherfas Anyway, I've done enough for today.
aaronpk joined the channel
# jeremycherfas Understood completely. I'm torn between modifying a child theme I really like and starting afresh.
# jeremycherfas Also, there's always some glitch between developing locally and in production. This time it was leftover widgets hanging about invisibly!
# jeremycherfas The problem with a stripped down theme, IMHO, is that people want to see something super pretty. I know I should be able to divorce content from presentation, but I seldom can.
[pfefferle] joined the channel
# [pfefferle] hey hey
# [pfefferle] what is the problem with the header image?
# Loqi It looks like we don't have a page for "problem with the header image" yet. Would you like to create it? (Or just say "problem with the header image is ____", a sentence describing the term)
# jeremycherfas It isn't so much a problem, as that I want to be able to use a different size than your recommended one. But if I upload a much narrower image, for example, is insists that I crop it.
# jeremycherfas Other than that, I have managed to get everything on my site upgraded now so that it looks good (to me) with the new ZenPress
# jeremycherfas Oh no, thanks [miklb] I see how it gets picked up just fine, but I cannot see how to ensure that I get the correct sizing I want.
# [pfefferle] I think you can add yours by overwriting this setting in your child theme https://github.com/pfefferle/ZenPress/blob/master/functions.php#L122
[kevinmarks] joined the channel
# [miklb] [jeremycherfas] https://gist.github.com/miklb/49c39c49e93c2a69ad37d8b59c36ed2c
# jeremycherfas Ahah! That's the sizing. I could not find it for myself. Many thanks. I will have a play tomorrow and see whether I can get the effect I am looking for.
# [pfefferle] yes, but with a higher priority
# [pfefferle] [jeremycherfas] what are the problems with the size?
# jeremycherfas Thanks [miklb] . I wonder if there is any way of making those pixel sizes flexible. Probably not.
# [pfefferle] perhaps I can change it in the core
# jeremycherfas To me, the height is just too great. I want narrower banners, that's all.
# jeremycherfas Thinner, maybe, not narrower.
# jeremycherfas It seemed to me that changes to the core don't help if they are hard-coded, as these seem to be, because different people will have different preferences for that sort of thing.
GWG joined the channel
# [pfefferle] maybe change it by a filter or setting
tantek, aaronpk, jackjamieson, [eddie], [cleverdevil], [miklb], [kevinmarks], tbbrown and chrisaldrich joined the channel