Home Forums WordPress Plugins Hide My WP “Load more” (dynamic) masonry images reveals wp-content link

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30057
    MGK
    Post count: 5

    Hi team,

    I have a “showcase” page that has a Masonry Galery with a Load More function. When clicking on that, new images are loaded.
    The initial ones have the wp-content info hidden by the plugin, but the new ones loaded don’t.

    Is there a way to keep hidding the links accordingly ?

    Thanks for your help.

    #30060
    Suman M.
    Post count: 12478

    Hi, I checked it and that’s because the images are loaded later via Ajax, and in such case HMWP cannot rename the default WP path. The only way you could rename such paths is by manually renaming the path in the code that loads these images.

    #30063
    MGK
    Post count: 5

    thank you for your prompt reply.
    i ended up checking the template and doing a hardcoded “str_replace” of wp-content by the path i setup, it seems to works for now.
    ideally i would prefere to make it better by doing something like :

    “if (HYDEMYWP_PLUGIN_is_active) { str_replace(‘wp-content/uploads’, HYDEMYWP_CONFIG_MEDIAS_PATH, $stringtoedit) }”

    would you happen to know if the two variables HYDEMYWP_PLUGIN_is_active and HYDEMYWP_CONFIG_MEDIAS_PATH are something easy to find and to use in a theme like hooks, or it doesnt really work like that ?

    thanks for your help again !

    #30068
    Suman M.
    Post count: 12478
    This reply has been marked as private.
    #30072
    MGK
    Post count: 5

    thank you sir ! great support

    #30076
    Suman M.
    Post count: 12478
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.