Tell us what you are trying to do?
i am trying to add
<script>
jQuery(document).ready(function($){
$("h1").first().before("<p>Insight > [wpv-post-taxonomy type='category']</p>");
$("h1").first().after("<h4>BY [wpv-post-author] | [wpv-post-date]</h4>");
});
</script>
when i add it to the body it does not work at all.
when i add it to the js section the short codes don't work
What is the link to your site?
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
I've checked the page's source code and it turns out the shortcodes are expanding correctly to include the dynamic data in the script.
There in an escaping issue due to the current use of the single and double quotes. I'll recommend to switch the main double-quotes used in the script with the single-quotes, like this:
<script>
jQuery(document).ready(function($){
$('h1').first().before('<p>Insight > [wpv-post-taxonomy type='category']</p>');
$('h1').first().after('<h4>BY [wpv-post-author] | [wpv-post-date]</h4>');
});
</script>
This should do the trick and let me know how it goes.
regards,
Waqar
you freaking rock thank you!