Forum Replies Created

Viewing 1 replies (of 1 total)
  • There is an issue with the subpages-navigation.php file.

    The file outputs 2 files into the header of the site:

    subpages-navigation-admin.js
    subpages-navigation.js

    when looking in the header at the location though I found that they were linking to the wrong location.

    The plugin folder is called “subpage-navigation” BUT in the header the location of the two files are output as “subpages-navigation/subpages-navigation-admin.js”

    Notice the extra s on subpages.

    I renamed the plugin folder but that stopped the plugin working so instead in opened “subpages-navigation.php” and changes the following lines by removing the S:

    function init_subpages_navigation_plugin()
    {
    if(is_admin()) {
    wp_enqueue_script(‘subpages-navigation-admin’, plugins_url(‘/subpage-navigation/subpages-navigation-admin.js‘),array(‘jquery’));
    }else{
    wp_enqueue_script(‘subpages-navigation’, plugins_url(‘/subpage-navigation/subpages-navigation.js‘), array(‘jquery’));
    if ( file_exists ( get_stylesheet_directory().’/subpages-navigation.css’ ) )
    {

    I baisically removed the S from the “subpages-navigation” BUT only for the folder, not the file names.

    Now works perfectly AND in my opinion a very worthy plugin, I’ve been looking for a solution like this for a few days now so i’m glad I got it working!

Viewing 1 replies (of 1 total)