New Landing How can we help? Themeforest Theme Support Joyn Joyn – size of Swift Slider in blog posts

Viewing 4 posts - 16 through 19 (of 19 total)
  • Posted in: Joyn
  • #309494
    David Martin – Support
    Moderator
    Post count: 20834

    Inside the child theme functions.php file paste this:

    /* THEME SETUP
    	================================================== */
    	if (!function_exists('sf_joyn_setup')) {
    		function sf_joyn_setup() {
    		
    			/* SF THEME OPTION CHECK
    			================================================== */
    			if ( get_option( 'sf_theme' ) == false ) {
    				update_option( 'sf_theme', 'joyn' );
    			}
    			
    			/* THEME SUPPORT
    			================================================== */	
    			add_theme_support( 'structured-post-formats', array('audio', 'gallery', 'image', 'link', 'video') );
    			add_theme_support( 'post-formats', array('aside', 'chat', 'quote', 'status') );
    			add_theme_support( 'automatic-feed-links' );
    			add_theme_support( 'post-thumbnails' );
    			add_theme_support( 'woocommerce' );
    			add_theme_support( 'appthemer-crowdfunding', array(
    				'campaign-edit'           	=> true,
    				'campaign-featured-image' 	=> true,
    				'campaign-video'          	=> true,
    				'campaign-widget'        	=> true,
    				'campaign-category'			=> true,
    				'campaign-tag'     			=> true,
    				'campaign-type'     		=> true,
    				'anonymous-backers'			=> true
    			) );
    			add_theme_support( 'swiftframework', array(
    				'swift-smartscript'			=> false,
    				'slideout-menu'				=> false,
    				'page-heading-woocommerce'	=> true,
    				'pagination-fullscreen'		=> true,
    				'bordered-button'			=> true,
    				'3drotate-button'			=> true,
    				'rounded-button'			=> false,
    				'product-inner-heading'		=> false,
    				'product-summary-tabs'		=> true,
    				'product-layout-opts'		=> false,
    				'mobile-shop-filters' 		=> false,
    				'mobile-logo-override'		=> true,
    				'product-multi-masonry'		=> false,
    				'super-search-config'		=> false,
    				'advanced-row-styling'		=> false,
    				'mobile-shop-filters'		=> false,
    				'gizmo-icon-font'			=> true,
    				'icon-mind-font'			=> false,
    				'menu-new-badge'			=> false,
    				'advanced-map-styles'		=> false,
    				'hamburger-css' 			=> false,
    				'pushnav-menu'				=> false,
    				'split-nav-menu'			=> false,
    				'max-mega-menu'				=> false,
    				'page-heading-woo-description' => false,
    				'header-aux-modals'			=> false,
    			) );
    			
    			/* THUMBNAIL SIZES
    			================================================== */  	
    			set_post_thumbnail_size( 220, 150, true);
    			add_image_size( 'thumb-square', 250, 250, true);
    			add_image_size( 'thumb-image', 600, 450, true);
    			add_image_size( 'large-square', 1200, 1200, true);
    			add_image_size( 'full-width-image-gallery', 1280, 720, true);
    			
    			/* CONTENT WIDTH
    			================================================== */
    			if ( ! isset( $content_width ) ) $content_width = 1140;
    			
    			/* LOAD THEME LANGUAGE
    			================================================== */
    			load_theme_textdomain('swiftframework', SF_TEMPLATE_PATH.'/language');
    			
    		}
    		add_action( 'after_setup_theme', 'sf_joyn_setup' );
    	}

    Locate and change the size of this: add_image_size( 'full-width-image-gallery', 1280, 720, true); to a square ratio: add_image_size( 'full-width-image-gallery', 1280, 1280, true);.

    You need to use this plugin to rebuild your thumbnails: https://wordpress.org/plugins/regenerate-thumbnails/

    #309595
    kai_h
    Member
    Post count: 15

    Thanks for the update via email.
    I have added the code to the functions.php file.
    Just so you are aware, when the text came through in email, it was partially url encoded – all the single quotes were encoded as & # 0 3 9 ;.

    re: locating and changing the full-width-image-gallery – I assume you mean to locate it and change it in the provided function, which is what I have done.

    I am regenerating the thumbnails now.

    Thanks,
    Kai

    #309596
    kai_h
    Member
    Post count: 15

    Thank you.
    Enabling the Child Theme, adding the code above to the functions.php file and regenerating the thumbnails seems to have fixed the problem – the sliders are now square.

    #309671
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help you out!

Viewing 4 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic.