• Resolved duhblow7

    (@duhblow7)


    main.php:22

    wp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ).'/css/css/font-awesome.min.css' );

    This is loading up the plugin css with double slashes.

    In the source code it is enqueing the stylesheet with the following double slashes:

    <link rel='stylesheet' id='font-awesome-css' href='https://site.com/wp-content/plugins/ultimate-carousel-for-visual-composer//css/css/font-awesome.min.css?ver=5.6' type='text/css' media='all' />

    The fix is to remove the leading slash on line 22:

    wp_enqueue_style( 'font-awesome', plugin_dir_url( __FILE__ ).'css/css/font-awesome.min.css' );

    While trivial this does affect the way some search engines index.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug in main.php – Duplicate slashes’ is closed to new replies.