Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #996630
    taurustheory
    Participant

    How can I replace ethos 1 flexslider with slider revolution?

    Thanks

    #996766
    Friech
    Moderator

    Hi There,

    Thanks for writing in! First disable the Ethos post slider on Customizer. And because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then add the code below on your child theme’s functions.php file.

    function custom_slider() { 
     if(is_home()): ?>
        <div class="custom-slider">
          <div class="x-container max width">
            <?php echo do_shortcode( '[rev_slider alias="wedding-home"]' ); ?>
          </div>
        </div>
      <?php endif; 
    }
    add_action('x_before_view_ethos__landmark-header','custom_slider', 30);

    Change the [rev_slider alias=”wedding-home”] with the shortcode of your own slider.

    Hope it helps, Cheers!

    #997662
    taurustheory
    Participant

    Thank you,
    The main reason I ask is because when I make a new post and add a feature image, For some reason I can’t edit the thumbnail, So the banner image looks really distorted, Please see screenshots, Is this an X Theme glitch? I want to only crop the thumbnail image, but it crops the banner image also

    Thanks so much

    #997833
    Rupok
    Member

    Hi there,

    What you have asked is already provided. Did you try that? And regarding the thumbnail issue, it doesn’t looks like a glitch rather usual.

    Thanks

    #997965
    taurustheory
    Participant

    Ok yes, But when I check the thumbnail only image to crop, it changes all images, Can you please try it?

    I dont want to keep wasting a lot of time with this X theme if it’s not going to work properly?

    or if I’m doing something wrong so I can fix it,
    Thank you

    #998215
    Friech
    Moderator

    Hi There,

    Sorry for the confusion, but would you mind letting us know how we can replicate the issue? Is that Edit Image on your screenshot is a plugin? WordPress provides you automatically a thumbnail version of images you upload on your site, so I’m not entirely certain what is the manual cropping is for. We’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks.

    #998799
    taurustheory
    Participant

    ok thank you, Yes it’s not a plugin, it’s the standard wordpress edit image function,

    When I upload a feature image with the size 2000px X 400px for my slider, I then need to crop it for the thumbnail image

    But when I do that it changes all images instead of just the thumbnail, Please see screenshot, Thank you

    #998957
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates. The featured image size on the page or post was generated as a result of the calculation of your content layout width being set in the customizer. That is why no matter what you do, the image stays the same because the image is being calculated according to it’s width. You need at least 900 pixel width image for your feature image. I would suggest that you upload an image enough to display as the featured image for your post/portfolio item.

    Hope this explains it.

    #999747
    taurustheory
    Participant

    Ok that makes sense, Thank you,
    So I will upload main image 900px wide then crop it for the thumbnail, correct?

    Thanks again

    #999793
    taurustheory
    Participant

    Ok I’m still have the same problem, The post thumbnail image will not change, This has to be some kind of glitch, please see screenshots, Thanks

    #999804
    taurustheory
    Participant

    here are the other screenshots
    Blog Forum Image Template.jpg: File exceeds allowed file size.
    Blog Forum Image Template image sizes to select.jpg: File exceeds allowed file size.

    #1000187
    Jade
    Moderator

    Hi there,

    Would you mind providing your admin details in a private response so that we could check your current setup? Thank you.

    #1000418
    taurustheory
    Participant
    This reply has been marked as private.
    #1000824
    Rue Nel
    Moderator

    Hello There,

    Are you referring to this feature image in the blog index (http://prntscr.com/b66a16)? This is not the thumbnail size. This image size is taken from the built in hard coded image dimension in X. The image size being used here is the entry fullwidth.

    If you want to have a full control over the feature image size, since you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.

    function x_get_featured_image_url( $size = 'full' ) {
        if( is_archive() ) {
            // you may use thumbnail, medium, large or full
        	$size = 'thumbnail'; 
        }
    
    	$featured_image     = wp_get_attachment_image_src( get_post_thumbnail_id(), $size );
    	$featured_image_url = $featured_image[0];
    
    	return $featured_image_url;
    
    }

    And since the featured images where set a a background image, to display the whole image, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .blog .entry-featured .entry-thumb,
    .archive .entry-featured .entry-thumb{
        background-size: contain;
    }

    Hope this would help you.

    #1001567
    taurustheory
    Participant

    ok thanks so much
    I’ll give it a try

  • <script> jQuery(function($){ $("#no-reply-996630 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>