WordPress.org

Support

Support » Plugins and Hacks » Arconix Portfolio » [Resolved] [Plugin: Arconix Portfolio Gallery] Jquery not working after Duplication

[Resolved] [Plugin: Arconix Portfolio Gallery] Jquery not working after Duplication

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Gardner

    @jgardner03

    Hmm… I don’t use any static id’s (the only ID I call is the post ID, which will never conflict), so there shouldn’t be that kind of conflict. What might be conflicting is either how the javascript gets registered in the plugin, or the javascript itself is conflicting.

    You noted previously that you changed the instances of “portfolio” to “experiences”. Did you do that across all files? Did you also do things like rename the ACP_URL and ACP_Version variables?

    You were right – the ACP_URL and ACP_Version variables needed to be changed. Now it works great.

    For learnings sake, why are the variables defined as below? You could either point me to some guide that describes it in detail, otherwise a brief description about why each part is written as it is. (for instance why 1.1.1? why ACP?
    define( ‘ACP_URL’, plugin_dir_url( __FILE__ ) );
    define( ‘ACP_Version’, ‘1.1.1’ );

    thanks again!

    Plugin Author John Gardner

    @jgardner03

    I defined those variables so that it saves me time elsewhere in the code.

    ‘ACP’ is just an acronym I used for my portfolio plugin (Arconix Computers Portfolio). I use the acronym so that it doesn’t conflict with other variables that may exist.

    ACP_URL is used as a quick reference for the URL of the plugin. I use that in a number of places.

    ACP_Version is the plugin version. I use that primarily when registering scripts so I don’t have to change that script version every time I update the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Arconix Portfolio Gallery] Jquery not working after Duplication’ is closed to new replies.
Skip to toolbar