Viewing 15 posts - 1 through 15 (of 17 total)
  • #125305
    MarcusF
    Member
    Post count: 75

    Hey πŸ˜€

    I want to remove the pp_description and pp_gallery, completely by php.

    How do i do that ?

    I need it to work from a child theme so i don’t need to worry about updates.

    /Kristoffer

    #125453
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you try to add the code below to the functions.php of your childtheme.

    
    add_action( 'wp_enqueue_scripts', 'sf_remove_pretty_photo_styles_and_scripts', 99 );
    
    function sf_remove_pretty_photo_styles_and_scripts(){
           wp_deregister_script( 'sf-prettyPhoto' );
           wp_dequeue_script( 'sf-prettyPhoto' );
    }
    

    -Rui

    #126706
    MarcusF
    Member
    Post count: 75

    Hey πŸ™‚

    Sorry for the late replay.

    This doesn’t work :/

    /Kristoffer

    #126750
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Where did you insert the code?
    Thanks
    Mohammad

    #127146
    MarcusF
    Member
    Post count: 75

    Hey,

    In my functions.php file πŸ™‚

    /Kristoffer

    #127170
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I need your website url and wordpress admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #127465
    MarcusF
    Member
    Post count: 75
    This reply has been marked as private.
    #127513
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I see that prettyPhoto.js has been removed by last code perfectly.
    Thanks
    Mohammad

    #128150
    MarcusF
    Member
    Post count: 75

    Hi,

    The div is still there so it doesn’t do what i want.

    /Kristoffer

    #128151
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide us the url of the page where you seeing the Div? A screenshot of the div code will also help.

    -Rui

    #128152
    MarcusF
    Member
    Post count: 75

    Here πŸ™‚

    Attachments:
    You must be logged in to view attached files.
    #128158
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Sorry need the url of that page.
    -Rui

    #128159
    MarcusF
    Member
    Post count: 75

    It’s just any product on rejsegear.dk/lol

    it’s a bypass url πŸ™‚

    /Kristoffer

    #128214
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I dont find the like you. Please check after clear the cache of browser.
    Thanks
    Mohammad

    #136059
    MarcusF
    Member
    Post count: 75

    Hey πŸ™‚

    Sorry for the late answer !

    I got the problem solved.

    best regards,
    Kristoffer

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register