How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums Child Themes support Remove structured data in ForexOptions

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11808
    betatet@gmail.com
    Participant

    Hello,

    I’m using Forex Options and would like some help, removing the structured data generated from the review pages. Is this possible?

    Thank you very much.

    #11861
    admin
    Keymaster

    Hi,

    You can remove structured data if you add the following snippet to your child theme:

    function remove_parent_actions() {
    remove_action(‘wp_footer’, ‘poka_add_structured_data’);
    }
    add_action( ‘init’, ‘remove_parent_actions’);
    #11863
    betatet@gmail.com
    Participant

    Hello, that didn’t work for Forex Options !

    #11931
    betatet@gmail.com
    Participant

    Can you please help me on this?

    #11977
    admin
    Keymaster

    Hi!

    Which version of Forex are you using?

    #11980
    betatet@gmail.com
    Participant

    It’s 1.0.3

    #11990
    admin
    Keymaster

    Hi!

    I just tested it in this specific version and it works!
    It removes JSON-LD from reviews:

    function remove_parent_actions() {
        remove_action('wp_footer', 'poka_add_structured_data');
    }
    add_action( 'init', 'remove_parent_actions');
    

    You should add it to functions.php file.

    • This reply was modified 1 day, 2 hours ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.