adding jquery to frontend
This commit is contained in:
parent
97d077b0c7
commit
07bcae19e2
|
@ -134,6 +134,12 @@ function xarxaprod_scripts() {
|
|||
//wp_enqueue_style( 'xarxaprod-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false);
|
||||
wp_style_add_data( 'xarxaprod-style', 'rtl', 'replace' );
|
||||
|
||||
// https://stackoverflow.com/a/24994304
|
||||
// deregister default jQuery included with Wordpress
|
||||
//wp_deregister_script( 'jquery' );
|
||||
// register our jQuery minified from theme directory
|
||||
//wp_enqueue_script('jquery', get_template_directory_uri().'/js/jquery.min.js', array(),'3.7.1',true);
|
||||
|
||||
wp_enqueue_script( 'xarxaprod-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );
|
||||
|
||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
|
@ -184,9 +190,3 @@ require get_template_directory() . '/inc/archive-title.php';
|
|||
* Functions to add admin styles
|
||||
*/
|
||||
require get_template_directory() . '/inc/admin-style.php';
|
||||
|
||||
/**
|
||||
* Function to add filter in xarxaprod-ajut custom post
|
||||
*/
|
||||
// moved to plugin on 2023 01 05
|
||||
//require get_template_directory() . '/inc/xarxaprod-ajut-filter.php';
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
if( has_custom_logo() ):
|
||||
$image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
|
||||
?>
|
||||
<a href="https://xarxaprod.cat" title="Xarxa d’espais de procucció i creació de Catalunya" class="custom-logo-link"><img class="custom-logo" src="<?php echo esc_url( $image[0] ); ?>" /></a>
|
||||
<a href="<?php echo site_url(); ?>" title="<?php echo get_bloginfo('name') . ' // ' . get_bloginfo('description'); ?>" class="custom-logo-link"><img class="custom-logo" src="<?php echo esc_url( $image[0] ); ?>" /></a>
|
||||
<?php
|
||||
endif;
|
||||
if ( is_front_page() && is_home() ) :
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -43,7 +43,7 @@ get_header();
|
|||
<!-- https://stackoverflow.com/a/48314274 -->
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
$('.fund-filter').ready(function() {
|
||||
$('#fund-filter').ready(function() {
|
||||
$('.xarxaprod-titol-opcions').click(function() {
|
||||
$(this).siblings(".filter").toggle();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue