Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

javascript paths relative only, not creating full URL

    • 6 years, 5 months ago sitebuilder2019
      Participant

      Just installed Folie theme with a swipe function on the homepage.  Getting four javascript errors as the path to this script is

       

      https://wp-content/themes/folie/js/swiper.min.js?_=1548799056405

      and it should be

      https://my-domain-here.com/wp-content/themes/folie/js/swiper.min.js?_=1548799056405

      Where do I fix this?

      Folie/Codeless/landing scroll template

      Wordpress

       

    • 6 years, 5 months ago Ruco
      Keymaster

      Hello,

      I think there isn’t any problem with the theme. The file is called by WordPress Core function “get_template_directory_uri()” recommended by WordPress.

      You can check the function here: functions.php :

        wp_localize_script(
              'codeless-main',
              'codeless_global',
              array(
                  'ajax_url' => esc_url( admin_url( 'admin-ajax.php' ) ),
                  'FRONT_LIB_JS' => esc_url( get_template_directory_uri() . '/js/' ),
      

      You can see that the constant is FRONT_LIB_JS and is called the function “get_template_directory_uri() . ‘/js/’.

      Please can you share with us your wp creds and online link in a private reply. So we can take a closer look.

      Let me know.

      Regards!

    • 6 years, 5 months ago sitebuilder2019
      Participant

      Yes, but there must be some sort of variable missing for this particular call as other javascript libraries are working but the slider which is specific to your template is not and is either supposed to be a relative URL or is missing the domain info.

    • 6 years, 5 months ago sitebuilder2019
      Participant

      P.S. I removed it.  It was causing problems.

    • 6 years, 5 months ago Ruco
      Keymaster

      Hello,

      Please can you send to us your online link and wp creds in your profile details so can inspect the issue closer and find what cause your issue.

      Let us know.

      Regards!

Viewing 4 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password