x

Banner/header link to weebly page

How to you add a link behind the banner/header image so it is clickable to another Weebly page? For example, linking the banner advert of an event to a page with further information.

9,498 Views
Message 1 of 12
Report
1 Best Answer

Best Answer

Hi @CM_2897,

You can add the following code:

<script>
(function($) {
$(function() {

var pageLink = 'http://www.waddons.com/', // add your page url
banners = $('.wsite-custom-background, .wsite-header');

banners.css('position','relative');
banners.wrap("<a href='"+pageLink+"'></a>");
});
}(jQuery));
</script>


Inside of the FOOTER CODE of the page where you would like to have a linkable banner, simply adjust the pageLink url (comment has been made beside it) and drop it in that box.

PAGES > PAGE NAME > Advanced > FOOTER CODE

 

image

image 

That should give you the option of linking that image,
note that it hasn't been tested on all pages, so if anything weird happens to the theme, please remove the code,
a live and working example: DEMO

Hopefully it works for you as well.

View Best Answer >

9,470 Views
Message 7 of 12
Report
11 REPLIES 11

As far as I know, you'll need to use custom HTML/CSS to do this. We don't have any tutorials on this, but you may be able to find some instructions by Googling. 

You may want to copy your site before you change the HTML/CSS just in case!

Thanks, and enjoy your day.

Erin

Weebly Community Manager

9,488 Views
Message 2 of 12
Report

hi Erin, thanks a lot for your reply. I have managed to find the tutorial on Google Smiley Very Happy

when you say "Copy your site" , you mean "archive the website" ?Smiley Very Happy

9,241 Views
Message 4 of 12
Report

Hi @CM_2897,

At this time, you cannot enable linking on header images in Weebly. However, if the theme and header type allows for a button in the header image, you can link that button!

9,486 Views
Message 4 of 12
Report

Many thanks Brodie - sadly my theme wont allow a button to be added so I'll just have to wait and hope this comes as a future development.

9,478 Views
Message 5 of 12
Report

yeah, finger cross. I hope that will be available in the future since that wil be very helpful and some other web builders have that feature as well. Smiley Happy

9,240 Views
Message 7 of 12
Report

Best Answer

Hi @CM_2897,

You can add the following code:

<script>
(function($) {
$(function() {

var pageLink = 'http://www.waddons.com/', // add your page url
banners = $('.wsite-custom-background, .wsite-header');

banners.css('position','relative');
banners.wrap("<a href='"+pageLink+"'></a>");
});
}(jQuery));
</script>


Inside of the FOOTER CODE of the page where you would like to have a linkable banner, simply adjust the pageLink url (comment has been made beside it) and drop it in that box.

PAGES > PAGE NAME > Advanced > FOOTER CODE

 

image

image 

That should give you the option of linking that image,
note that it hasn't been tested on all pages, so if anything weird happens to the theme, please remove the code,
a live and working example: DEMO

Hopefully it works for you as well.

9,471 Views
Message 7 of 12
Report

legendary, will give this a try  Smiley Happy

9,239 Views
Message 9 of 12
Report

I have only implemented this into the footer code of the home page for now whilst I test, but works great so far. 

Many thanks for the code!

8,946 Views
Message 10 of 12
Report

This script is great!  Thank you!  I added it by dragging an Embed Code element into page footer and pasting the script in there. Smiley Happy

5,878 Views
Message 11 of 12
Report

Never mind....I figured it out. (But I can't figure out how to delete my post!)

1,410 Views
Message 13 of 12
Report
Square

You can't delete a post, but thanks for editing it, @ReadySetGoWeb Smiley Happy 

1,405 Views
Message 13 of 12
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.