Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter namnamir

    (@namnamir)

    Thanks.

    I found a solution for it. The problem occurs when “slide” as the animation value is used. I just changed it to “fade” and it works now ??

    I change this value in the following file:
    /wp-content/themes/hueman/parts/featured.php

    The original code was:

    $.when( $('#flexslider-featured').flexslider({
    	animation: "slide",
    	useCSS: false, // Fix iPad flickering issue
    	directionNav: true,
    	controlNav: true,
    	pauseOnHover: true,
    	animationSpeed: 400,
    	smoothHeight: true,
    	touch: <?php echo apply_filters('hu_flexslider_touch_support' , true); ?>,
    	slideshow: <?php echo hu_is_checked('featured-slideshow') ? 'true' : 'false'; ?>,
    	slideshowSpeed: <?php echo hu_get_option('featured-slideshow-speed', 5000); ?>,
    }) )

    And after the change, it was changed to this:

    $.when( $('#flexslider-featured').flexslider({
    	animation: "fade",
    	useCSS: false, // Fix iPad flickering issue
    	directionNav: true,
    	controlNav: true,
    	pauseOnHover: true,
    	animationSpeed: 400,
    	smoothHeight: true,
    	touch: <?php echo apply_filters('hu_flexslider_touch_support' , true); ?>,
    	slideshow: <?php echo hu_is_checked('featured-slideshow') ? 'true' : 'false'; ?>,
    	slideshowSpeed: <?php echo hu_get_option('featured-slideshow-speed', 5000); ?>,
    }) )

    The following link shows the properties for FlexSlider which has been used in Huemen theme:
    https://github.com/woocommerce/FlexSlider/wiki/FlexSlider-Properties

    • This reply was modified 8 years, 1 month ago by namnamir.
    • This reply was modified 8 years, 1 month ago by namnamir.
    • This reply was modified 8 years, 1 month ago by namnamir.
    Thread Starter namnamir

    (@namnamir)

    Thanks.

    I’ve used these codes before the title in theme’s post php file to use this feature:

    // The Ticker -> Before the main title
    <h3 class="entry-ticker">
    	<?php
    	     $Ticker_value = get_post_meta( get_the_ID(), 'Ticker', true );
    	     if( ! empty( $Ticker_value ) )
    	     { echo $Ticker_value; }
    	?>
    </h3>

    If someone don’t like to use any addition plugin can add this part of code to where s/he like as subtitle. I’ve added it after the main title:

    // The Subtitle -> After the main title
    <h3 class="entry-subtitle">
    	<?php
    	     $Subtitle_value = get_post_meta( get_the_ID(), 'Subtitle', true );
    	     if( ! empty( $Subtitle_value ) )
    	     { echo $Subtitle_value; }
    	?>
    </h3>

    in addition I added these codes to CSS file. You can customize it as you’d like ??

    h3.entry-ticker {font-size: 70%;}
    h3.entry-subtitle {font-size: 70%;}

    Now, just add two custom fields to the post that you like have ticker of subtitle. Name the fields “Subtitle” and “Ticker”.

Viewing 2 replies - 1 through 2 (of 2 total)