Javascript developer,
i have this script which i display html dynamically in my template :
$(document).ready(function() {
var credits= $('body').append('<div id="wrap"><div id="wrapp-inner"><div id="wrapleft"></div><div id="wrapright">Designed Templatezy</div></div></div>');
});
Now i want to add <a expr:href='data:blog.homepageUrl'><data:blog.title/>™</a>
to that wrapleft div but its not working to display the blog title and nor it add the url of site.
Hint: this is a <a expr:href='data:blog.homepageUrl'>
html/expression tag in blogger template which create link for your site homepage. like http://example.com where as <data:blog.title/>
is a tag which display your blog title like "Stack Overflow". it is easy to add in a template but i found it hard when adding it to that append script.
I tried like below but thats not working:
$(document).ready(function() {
var credits= $('body').append('<div id="wrap"><div id="wrapp-inner"><div id="wrapleft"><a expr:href='data:blog.homepageUrl'><data:blog.title/>™</a></div><div id="wrapright">Designed Templatezy</div></div></div>');
});
So please anyone help me to add this <a expr:href='data:blog.homepageUrl'><data:blog.title/>™</a>
after the wrapleft div in that append script. thanks.
Updates:
i can add as general link in the script: like a href stackoverflow.com$(document).ready(function() {
var credits= $('body').append('<div id="wrap"><div id="wrapp-inner"><div id="wrapleft"><a href="stackoverflow.com">stackoverflow</a></div><div id="wrapright">Designed Templatezy</div></div></div>');
});
and this work, but how to add <a expr:href='data:blog.homepageUrl'><data:blog.title/>™</a>
in the script to work, it is simple to add in template and display title of site with title, but how to add in that script inside append after leftwrap. i add it but it comes as plain texts.