Not Solved Creating a theme, looking for help
#1
Not Solved
I need some help, I am creating a theme and I want to give <body> a tag or a class for all pages not for only index,

is there any possible way to do that?
Reply
#2
Not Solved
Include something like the following in your headerinclude template:

<script type="text/javascript">
$(document).ready(function() {
  $("body").addClass("hello-world");
});
</script>
Reply
#3
Not Solved
(2017-08-03, 07:55 PM)Wage Wrote: Include something like the following in your headerinclude template:

<script type="text/javascript">
$(document).ready(function() {
  $("body").addClass("hello-world");
});
</script>

This or you can modify most of the templates manually to add class to body tags. This way you can even give different class to your body tags, advantage being you can use the page active status using this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)