Home › Forums › Calendar Products › Events Calendar PRO › Child Theme
- This topic has 6 replies, 3 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
January 15, 2016 at 9:00 am #1056685
Linda
ParticipantHi
I want to make changes to list/content.php and have it so that when I update the Events Calendar I do not have to redo this. I’ve tried to make a child theme but it doesnt show any of the changes.
So far I have added the following folder:
wp-content/themes/my-theme/tribe-events/views/list/content.php (obviously changing my-theme to my theme’s name)
Now I want an adsense unit under “Upcoming events” but above the “previous events” & “next events” so I’ve made the following change to the code:
<!– List Title –>
<?php do_action( ‘tribe_events_before_the_title’ ); ?><?php echo tribe_get_events_title() ?>
<?php do_action( ‘tribe_events_after_the_title’ ); ?>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Content Responsive –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-8764xxxxxxxxxxxx”
data-ad-slot=”7270xxxxxx”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!– Notices –>
<?php tribe_the_notices() ?>but when I load it all nothing seems to happen.
I’ve also tried
wp-content/themes/my-theme/tribe-events/src/views/list/content.php and
wp-content/themes/my-child-theme/tribe-events/views/list/content.php (again changing my-child-theme to my own theme’s name)
but nothing seems to work.
I am using default page template and full styles.
Any help would be much appreciated!
January 15, 2016 at 12:56 pm #1056796Brian
MemberHi,
Thanks for using our plugins. I can help out here.
Try this for the url:
wp-content/themes/my-theme/tribe-events/list/content.php
It should be tribe-events/list
Think of it this way the files are in src/views and tribe-events replaces that text.
Does it work then?
January 18, 2016 at 3:22 am #1057602Linda
ParticipantHi
Thanks for getting back to me so quickly.
Yes that’s worked, thank you.
One thing though, how do I get the adsense unit to appear on page 2, page 3, so on… of the event listings?
Thanks again!January 18, 2016 at 8:01 am #1057879Brian
MemberIf you would like to show it on all the pages you will have to change the place you put the coding and put it outside of this id: tribe-events-content
So you would want to put it in this file instead:
plugins/the-events-calendar/src/views/list.php
In your theme:
wp-content/themes/my-theme/tribe-events/list.php
Cheers
January 18, 2016 at 9:11 am #1057934Linda
ParticipantThis reply is private.
January 18, 2016 at 3:49 pm #1058140Brian
MemberHi,
If you want to keep the adsense there you would have to develop a script to reload it after the next page is loaded.
That is unfortunately. custom coding and not something we can help with per our terms and conditions.
I can try to answer some more questions, but have little else beyond what we have already provided.
Thanks
February 18, 2016 at 8:34 am #1076888Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Child Theme’ is closed to new replies.
