• Resolved fransjansen

    (@fransjansen)


    Hi,
    It seems this plugin conflicts with the custom footer option in the Avada theme.
    I have a main website (Zuiderburen.com) and I created a stand alone area for the football pool under https://zuiderburen.com/ekpool/

    The theme Avada offers to add custom footers to certain pages, so I thought it would be nice to use it on the football pool related pages.

    It does show the footer on the selected pages, but beside that it duplicates the content area and shows it below the new footer. You can see what I mean on https://zuiderburen.com/tournament/teams/ and https://zuiderburen.com/tournament/groups/

    I hope someone has a solution for this issue. Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AntoineH

    (@antoineh)

    The Football Pool plugin uses the standard the_content filter to attach its content to a page. You can prioritize one filter over the other, but I do not know what priority number your theme uses. I don’t have the avada theme, so not able to look in the code of that theme.

    You can try adding the following to your wp-config.php to adjust my plugin’s priority. Lower numbers correspond with earlier execution. My guess is that my plugin has to fire after the theme and thus has to use a high number for the priority. Default install of the plugin has priority 50, so just try some higher numbers to see what works, e.g.

    define( 'FOOTBALLPOOL_CONTENT_FILTER_PRIORITY', 100 );

    Thread Starter fransjansen

    (@fransjansen)

    Hi Antonine,

    Unfortunately this doesn’t solve the issue. I tried it using priority 100, 200 and 300.
    I will check on the Avada them Facebook group whether there is another solution.

    Plugin Author AntoineH

    (@antoineh)

    You can also try a lower number, e.g. 5 (wordpress default is 10).

    Niet geschoten, is altijd mis ??

    Thread Starter fransjansen

    (@fransjansen)

    This doesn’t make any difference. And by the way if I make use of a custom header instead of footer the same happens.

    Any idea how I can investigate why the content part (generated via the football pool plugin) is being duplicated?

    Plugin Author AntoineH

    (@antoineh)

    This doesn’t make any difference. And by the way if I make use of a custom header instead of footer the same happens.

    It was worth a shot.

    Any idea how I can investigate why the content part (generated via the football pool plugin) is being duplicated?

    The best way would be to start a debug session on the server. If you have an advanced IDE like PhpStorm it is fairly easy to walk through the code and to set some break points.

    Without an IDE you can try to search for any clues in the code of the theme. I would start by searching for the filter “the_content”. And then print some info to the screen or a debug file to try to determine what happens.

    Thread Starter fransjansen

    (@fransjansen)

    This thread can be closed. I reinstalled the football plugin on another domain and I do nog have this issue anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Double content because of custom footer in Avada theme’ is closed to new replies.