Site logo

Archived topic

Different banner for inside pages

25 replies · Started by Kris on January 4, 2023

Viewing posts 16–26 of 26

I see. You would need to add that Banner differently if you want it to become a link.

For reference, do you have GenerateBlocks Pro?

I would want it to become a link.

Create two Hook Elements.

Hook Element #1:

Add this code:

<a href="https://socialmediarevolver.com">

Set the hook to:

generate_before_header

Hook Element #2:

Add this code:

</a>

Set the hook to:

generate_after_header

Set the display rule location for both as you prefer. Ideally - Entire site.

I edited the code above and added your URL. Can you try that?

Works like a charm! Thanks Fernando!

What about this one: seems that my widescreen featured images are being squeezed into a square in a mobile view.
Can we fix this, or do I need a separate mobile plugin? https://i.postimg.cc/0yzjNgpm/mobileview.jpg

Can you first temporarily disable Autoptimize so we can have a clearer look? I'll check what needs to be done or if you would need another plugin.

Yep, done!

Can you try adding this through Appearance > Customize > Additional CSS?:

body:is(.blog, .archive) .post-image img.wp-post-image {
    object-fit:contain;
    height:auto;
}

You're a wizard, Fernando! Thank you :)

You're welcome, Kris! :)

This archived topic is closed to new replies.