• Hi,
    I just found an issue with your plugin enabled and another plugin I use (LF Hiker) which shows a recorded GPS track on a map.
    The map used to show up right here:
    https://gatetoadventures.com/tamiami-trail-through-the-everglades/#Loop_Road_Scenic_Drive
    The map was displayed just above the Loop Road Scenic Drive headline.
    When I disable EZ-TOC the map shows up again. Or I can just remove the [ez-toc] tag from the content section of this post and the map will show up again.

    I assume there is some kind of conflict going on. Is there anything I could change in the plugin settings to make the map work again or is it dependent on the coding of the plugin?

    Thanks

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Steven

    (@shazahm1hotmailcom)

    Please install the Code Snippets plugin and add this as a new code snippet.

    add_filter(
    	'ez_toc_exclude_by_selector',
    	function( $selectors ) {
    
    		$selectors['lf-hiker-head']    = '.lfh-head';
    		$selectors['lf-hiker-header']  = '.lfh-header';
    		$selectors['lf-hiker-section'] = '.lfh-section';
    
    		return $selectors;
    	}
    );

    Don’t forget to save and activate the new snippet.

    Does that help? If not, please leave the code snippet active so I can see the effect on the page. Thanks!

    Thread Starter Snake-Plissken

    (@snake-plissken)

    Hi,

    thanks for the quick response. I did as requested but it didn’t change anything. At least on my end, I am still not able to see the map there. (its not the google map at the end of the post)
    the snippet is activated and still active.
    Thanks

    Thread Starter Snake-Plissken

    (@snake-plissken)

    Hi @shazahm1hotmailcom
    just curious if there is anything else I could try.

    Thanks.

    Steven

    (@shazahm1hotmailcom)

    Is the snippet still active? I ask because the hidden heading added by the map is still showing as being processed by ezTOC.

    If it is, please try adding this to the snippet:

    $selectors['lf-hiker-element'] = '.lfh-element';

    Thread Starter Snake-Plissken

    (@snake-plissken)

    hi there,

    yes the snippet is still active and I just added your previously mentioned line.
    It looks like this now:

    add_filter(
    	'ez_toc_exclude_by_selector',
    	function( $selectors ) {
    
    		$selectors['lf-hiker-head']    = '.lfh-head';
    		$selectors['lf-hiker-header']  = '.lfh-header';
    		$selectors['lf-hiker-section'] = '.lfh-section';
    		$selectors['lf-hiker-element'] = '.lfh-element';
    
    		return $selectors;
    	}
    );

    But I tried again, and the map is still not showing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with LF-Hiker Plugin’ is closed to new replies.