Search
 
SCRIPT & CODE EXAMPLE
 

CSS

Slick slider and ACF Pro in WordPress

/**  
 * Plugin your ACF here
*/
<?php 

if( have_rows('slick_slider') ):
echo'<div class="slider-nav">';
 	// loop through the rows of data
    while ( have_rows('slick_slider') ) : the_row();
    // display a sub field value
    //vars
    $icon = get_sub_field('icon'); 
    ?>
    <div class="icon-wrapper" data-tooltip="<?php if ( $icon_title = get_sub_field( 'icon_title' ) ) : ?><?php echo esc_html( $icon_title ); ?><?php endif; ?>">
	    <img class="icon-image" src="<?php echo esc_url( $icon['url'] ); ?>" alt="<?php echo esc_attr( $icon['alt'] ); ?>" />
    </div>
    <?php      
    endwhile;
echo '</div>';

else :

    // no rows found

endif;
Comment

Slick slider and ACF Pro in WordPress

function child_enqueue_styles() {
	// Slick slider files enqueue
	wp_enqueue_script( 'slickjs', get_stylesheet_directory_uri() . '/assets/js/slick.min.js', array( 'jquery' ), '1.8.1', true );
	wp_enqueue_script( 'slickjs-init', get_stylesheet_directory_uri(). '/assets/js/slick-init.js', array( 'slickjs' ), '1.8.1', true );
	wp_enqueue_style( 'slickcss', get_stylesheet_directory_uri() . '/assets/css/slick.css', '1.8.1', 'all');
	wp_enqueue_style( 'slickcsstheme', get_stylesheet_directory_uri(). '/assets/css/slick-theme.css', '1.8.1', 'all');
}
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 );
Comment

Slick slider and ACF Pro in WordPress

/* Slick slider */
.slick-track > div {
    margin-right: -20px !important;
}
.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: teal !important;
    border: none;
    outline: none;
    background: transparent !important;
}
.slick-prev:hover, .slick-next:hover {
    color: teal !important;
}
.slick-prev:before, .slick-next:before {
    font-family: 'slick';
    font-size: 20px;
    line-height: 1;
    opacity: .95 !important;
    color: teal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
Comment

PREVIOUS NEXT
Code Example
Css :: mouse hover text zoom effect 
Css :: remove bullet list css 
Css :: full calendar custom css 
Css :: prevent child margin from moving parent css 
Css :: Background Image Accessibility concerns 
Css :: sass-migrator division **/*.scss 
Css :: alinhar componentes css 
Css :: types of margin in css 
Css :: progressBars bulma -- thickness 
Css :: width height samsung note 20 screen 
Css :: hover to slightly up div 
Css :: CSS menu list with underline hover animation 
Css :: browser renders before styles are applied 
Css :: nice select scroll bar for large amount of options 
Css :: position relative and absolute difference in css 
Css :: practice html and css 
Css :: pill shape css 
Css :: scss font color 
Typescript :: typescript code ignore 
Typescript :: dart wait 5 seconds 
Typescript :: how to do limits in latex 
Typescript :: python program to print the contents of a directory using os module 
Typescript :: how to check if file exists lua 
Typescript :: google sheets concatenate 
Typescript :: subplots titles 
Typescript :: useWindowsize hook in react 
Typescript :: angular 8 set cookie to string 
Typescript :: node redis new objects must be created at the root 
Typescript :: A Tree Diagram is a drawing with branches of all possible outcomes 
Typescript :: size of list applescript 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =