ziedinjsh Posted February 4, 2019 Report Share Posted February 4, 2019 (edited) Sveiki! Veidojot wp dizainu ir vajadzīgs montage.min.js. Integrējot to functions.php failā: function eb_theme_assets(){ wp_enqueue_style('style', get_stylesheet_uri()); wp_enqueue_style('reset', get_template_directory_uri().'/css/reset.css', array(), '1.0.0', 'all'); wp_enqueue_style('imageview', get_template_directory_uri().'/css/imageview.css', array(), '', 'all'); wp_enqueue_style('ebstyle', get_template_directory_uri().'/css/ebstyle.css', array(), '1.0.0', 'all'); wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array('jquery')); wp_enqueue_script('montage', get_template_directory_uri().'/js/montage.min.js', array('jquery')); wp_enqueue_script('photoView', get_template_directory_uri().'/js/imageview.js', array('jquery')); wp_enqueue_script('ebfunctions', get_template_directory_uri().'/js/functions.js', array('jquery')); wp_enqueue_script('ebjquery', get_template_directory_uri().'/js/ebjquery.js', array('jquery')); // ture/false --> footer/header wp_enqueue_script( 'jquery-ui-sortable' ); } add_action('wp_enqueue_scripts', 'eb_theme_assets'); console rodas šāds errors: Uncaught RangeError: Maximum call stack size exceeded at String.replace (<anonymous>) at fa (jquery.js:2) at ta (jquery.js:2) at jquery.js:2 at f (jquery.js:2) at fa.select (jquery.js:2) at Function.fa (jquery.js:2) at Function.a.find (jquery-migrate.min.js:2) at a.fn.init.find (jquery.js:2) at a.fn.init.a.fn.find (jquery-migrate.min.js:2) iekomentējot montage rindu kļūda pazūd. Mēģināju izmantot wp jquery.js, mēģināju izmantot vecākus jquery.js kur tas montage.js strādā, bet bez rezultātiem, visur tas pats. Links uz automatik image montage P.S. Paldies jau iepriekš! Edited February 4, 2019 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.