Can’t get hook filter to work with Generate Press theme
-
Hi Robin,
I fear I’m doing something very stupid, but I just can’t get the filter. you provide to hook the icons onto the generate press generate_after_content hook
I have tried everything I can think of including several permutations of the code below. Nothing seems to work. I have made sure I have posts check box set to manual only in the settings.
Help would be much appreciated.
Thanks
add_filter( ‘scriptlesssocialsharing_locations’, ‘prefix_change_sss_locations’ );
function prefix_change_sss_locations( $locations ) {
$locations[‘before’] = array(
‘hook’ => ‘generate_after_content’,
‘filter’ => false,
‘priority’ => 8,
);
$locations[‘after’] = array(
‘hook’ => ‘generate_after_content’,
‘filter’ => false,
‘priority’ => 8,
);return $locations;
}
- The topic ‘Can’t get hook filter to work with Generate Press theme’ is closed to new replies.