Skip to content
Public Ticket #31667

Header background banner sizing & link

Conversation thread

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Footer → General → Add Custom HTML code before close </body> tag / Google Analytics Code: paste this code:

<script>
document.querySelector('.penci-desktop-midbar')?.addEventListener('click', function () {
    window.location.href = window.location.origin;
});
</script>

Regards,
PenciDesign.

maximilianruschepaul replied

Customer Reply

Yes please. Otherwise it is not easy to get back to the home page (only via breadcrumbs or re-entering the domain adress). Nice to have: can the auto-shrink to "0" height be stopped, when having a head banner in use but no elements other than that?

PenciDesign Supporter replied

Staff Reply

Hi,

Do you mean you want to make the entire banner image clickable?

Regards,
PenciDesign.

maximilianruschepaul started the conversation

Conversation Start

Hey all,

I appreciate the support a lot - thank you. I have a new challenge, which I was not able to solve so far.

With the elementor builer I wanted to put a banner as header. It should be clickable (with a link back to the home page). However multiple challenges: If I ad a background picture e.g. for the mid bar (as currently on page) it does not show full size, unless I also add an empty text block element. Furthermore the banner is not clickable, as the template does not offer a link for background picutres.

While I found my bad workaround, I am sure there is actually a smart and planned way of doing it without my hidden text block? Thanks for any hint!

Want to join this conversation or access attachments? Sign in first.