Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi,
I created one custom element app( like scroll to top ) and installed in weebly site. It is working fine in one page if i dragged in that page.
But My question is how this app will work all the pages?
and
How can we inject the script in eaither footer or header?
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
1 REPLY 1
Since the footer area of Weebly is shared on all pages, so you can place your app inside the footer area and the code/script available through the code will be added to all pages.
The other option is that you can inject your code by targeting the header or footer class from your app code as follows:
jQuery(document).ready(function(){
jQuery('your-header-class-here').append('<style>your styles here</style>');
});
I hope it helps.
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report