Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2320970
.js files? Deploy Mode
Closed

Comments

  • aaronknoll started the conversation

    Love the theme—

    But I'm working to customize and optimize the performance, because there's many features you make available but I don't use. Question, why aren't the partial .js files bundled with the theme? I see an option to enable Deploy Mode in the .php files; however, those individual files are not available. Specifically I'm speaking of media.php and it includes (but is not limited to ) the files referenced here: 

    wp_enqueue_script( 'TweenMax', get_template_directory_uri() . '/js/TweenMax.min.js', array( 'jquery' ), time(), true );
    wp_enqueue_script( 'wow', get_template_directory_uri() . '/js/wow.min.js', array( 'jquery' ), time(), true );
    wp_enqueue_script( 'owl.carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array( 'jquery' ), time(), true );
    wp_enqueue_script( 'flexmenu', get_template_directory_uri() . '/js/flexmenu.min.js', array( 'jquery' ), time(), true );
    wp_enqueue_script( 'inview', get_template_directory_uri() . '/js/jquery.inview.min.js', array( 'jquery' ), time(), true );


    Is there any chance that purchasers of the theme can get access to the files in deployment mode?

    Thanks,

    Aaron 

  •  501
    Penci replied

    Hi,

    Please add  to wp-config.php file as screenshot  https://prnt.sc/rd6r9x

    define( 'PENCI_DEPLOY_MODE', true );

    Best Regards,

    PenciDesign

  • aaronknoll replied

    If I set deploy mode to false (or to dev), would I somehow be able to obtain all the original individual javascript files referenced there (and that are not part of the theme's bundle?)

  •  501
    Penci replied

    Hi,

    If you  set "PENCI_DEPLOY_MODE" is true, PenNews theme will load list individual  js file  ( TweenMax.min.js, jquery.inview.min.js ,... )

    if  you want edit theme, i recommend you use child theme of PenNews theme


    Best Regards,

    PenciDesign