Make child theme for minileven mobile theme so changes not overwritten?
-
Hi,
I have a child theme for my desktop theme which adds an id to the post title so I can access it via javaScript.
I can do the same change to minileven (jetpack mobile theme) but can’t see how to create a child theme for it so my change will be lost when I update jetpack
The file I want to change is: plugins/jetpack/modules/minileven/theme/pub/minileven/content.php
and the code change is line22, from:
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
to:
<h1 id="h1-title"><?php the_title(); ?></h1>
my javaScript is
var p = document.getElementById("h1-title").innerHTML;
I then use this post title which is the name of a course to populate a booking form via javaScript so that I know which course is being requested.
your help would be appreciated. Thanks.
- The topic ‘Make child theme for minileven mobile theme so changes not overwritten?’ is closed to new replies.