Child Theme

Home Forums Calendar Products Events Calendar PRO Child Theme

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1056685
    Linda
    Participant

    Hi

    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!

    #1056796
    Brian
    Member

    Hi,

    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?

    #1057602
    Linda
    Participant

    Hi
    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!

    #1057879
    Brian
    Member

    If 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

    #1057934
    Linda
    Participant

    This reply is private.

    #1058140
    Brian
    Member

    Hi,

    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

    #1076888
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Child Theme’ is closed to new replies.