Si Kord
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Get header image description to stringCool, thanks! That works perfectly for me!
Forum: Themes and Templates
In reply to: Get header image description to stringHi urkekg,
do you have that code for me? Did it work that way?
Forum: Themes and Templates
In reply to: Get header image description to stringCool, thank you!
looking forward to try that out.
Forum: Themes and Templates
In reply to: Get header image description to stringHi, thanks for your reply.
I mean we get the image url as return from the header_image(). Couldn’t it work somehow to cross-check that url matching one of the array entries and get this description then?
Sorry for not proposing any code – the result of a combination of being short in time and being a php noob…
hm, I’d love to have that, too. Since that would give the possibility to still use a cache like varnish without having both versions mixed…
Forum: Themes and Templates
In reply to: Get header image description to stringHi urkekg,
thanks for this, works for static header images for me. But it does not for random headers (like the random ones, wp offers, so no uploaded ones but hardcoded in functions.php)
Do you have a way how that could work? I always just get the
get_bloginfo('name') . ": " . get_bloginfo('description');part but no description is used.I tried to go through that but I’m still confused by the different variables…
Thanks!