• Resolved nathair

    (@nathair)


    I have a community website, and am using Atahualpa as the theme.
    the calendar shows allright if I use the tribe events style and standard event template. Footer is nicely in place here. No sidebars, but that does not matter.
    https://www.oosterwijtwerd.net/kalender/

    However, the events add one sidebar on the left and then the footer is placed in the sidebar.
    I can see it is placed there because it is defined as
    <td id=”footer” colspan=”1″> where in this case it should be <td id=”footer” colspan=”3″>

    Indeed on the frontpage, or any other page the footer has a colspan of 3.

    PS I can not use any other template in the events calendar, because the others I can choose from will all break the calendar and the events.
    The question is: can I add some code somewhere to change this?

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Nathair,

    I’m not familiar with Atahualpa but that code is likely to be generated within the theme’s footer.php template. Theoretically though you could do something like this to detect if the request is for a single event and then change the colspan attribute appropriately:

    if ( tribe_is_event() && is_singular() ) echo 'colspan="3"';
    else echo 'colspan="1"';

    Or something similar to that. The actual solution will depend on how your theme puts things together, but hopefully that gives you a basic picture of how a change may be made ??

    Thanks!

    Thread Starter nathair

    (@nathair)

    I am not so good at this. Found the code in the footer.php
    Columns in this theme can be anything between 0 and 5. Complicated

    <td id=”footer” colspan=”<?php echo $cols; ?>”> is the line where columns in the footer are defined

    I worked on your code and this appears to have solved it.

    <td id=”footer” colspan=”<?php if ( tribe_is_event() && is_singular() ) echo 3 ;
    else echo $cols; ?>”>

    Is it properly coded?
    thanks
    Nathair

    Hi Nathair,

    If it works you’re probably on track – I don’t know however where $cols is being defined and so it’s difficult to say absolutely whether or not that is “correct” or not. The acid test of course is if it works as expected and based on what you are telling us it sounds as if it does ??

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘small problem with footer now wrapping into left column’ is closed to new replies.