Viewing 30 results - 5,401 through 5,430 (of 10,101 total)
  • Author
    Search Results
  • Thanks; that’s a useful plugin; but that doesn’t actually answer my question. Enfold’s default thumbnail size is 80 x 80. All the WordPress documentation and tutorials I have read say that WordPress’s default thumbnail size is 150 x 150. I interpret that to mean that when I import an image into Enfold, the theme will create an 80 x 80 thumbnail as part of WordPress’s standard four-size photo creation. But if I were in a different theme and imported an image, the thumbnail that WordPress would create as part of the standard four sizes would be 150 x 150. Am I on the right track?

    #608369

    Thanks for your interest.
    But sorry, you don’t understand the problem. The problem don’t occur when the video is played or ended.

    When the “easy slider” is loaded and appears, you can see the thumbnails of each youtube’s slide.
    But when the “easy slider” loops back to the first slide, the movie thumbnail don’t appear anymore. Just black… And I haven’t clicked anything on the “easy slider”…

    Just purchased another license of enfold, for another project, and the same problem occurs.
    It’s strange to see a loop of black thumbnails…

    Autorotation is ON for 5 sec / slide

    • This reply was modified 10 years ago by romano2. Reason: Precision

    Hey GlenCoffey!

    It is possible but requires a lot of custom coding… and you might have to hire a freelancer. But there is an easy work around upload your video to youtube and setup a video thumbnail that way by default the video thumbnail shows and when users click on it the video will start playing… :)

    Best regards,
    Vinay

    #607804

    In reply to: Change Blog Layout

    Thanks Ismael, Magazine element is fine and I’m trying to change some stylings of it with CSS. Is there a way to place the topic picture at the left of the text? I tried

    .av-magazine-thumbnail img, .av-magazine-thumbnail {
    float: left!important;
    }

    but that doesn’t work, the space below the picture stays empty.

    Hey swisssol!

    Thank you for using Enfold.

    I’m sorry but you cannot reset the youtube video to its initial state once you trigger a video event. Clicking on the slider navigation will automatically trigger a pause and the only way to display the thumbnail again is by refreshing the whole page.

    A workaround is to add an image instead of video then add the video url as link. The video will open in a lightbox once the image is clicked.

    Best regards,
    Ismael

    Hi kgbrooklyn!

    Thank you for using Enfold.

    The maximum size of the images in the masonry items is set to 705x705px. And you have to consider the actual width of the masonry columns. You can find the thumbnail size script in the functions.php file:

    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    

    The following plugin can help you adjust the thumbnails in the Settings > Media panel. https://wordpress.org/plugins/simple-image-sizes/

    Regards,
    Ismael

    #607439
    condonpb
    Participant

    Dear Sirs,

    I am very confused. I have a website at http://www.britishartportfolio.co.uk on the homepage there are three images under the title of “Latest Works’ these have been set up and the associated links to the individual pages have been assigned. However when you click on the image thumbnail it takes you to the page with the enlarged image on but with the wrong breadcrumb on the right. For example the if you click on the elephant image thumbnail, the main page breadcrumb shows as “You are here:
    Home/Contemporary Artists/Ken Maycock Portfolio where as it should be Home/Contemporary Artists/Beatrice Forshall also the other two are wrong. Can you help please. I have included the login details

    #607113

    In reply to: Image Size

    Hi!

    The theme generates multiple thumbnails and apply those thumbnails on different elements in the theme. For reference, edit the functions.php file then look for this block of codes:

    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);

    Those are the generated thumbnail sizes for different elements. Read the comment after each thumbnail registration to see which is which.

    Cheers!
    Ismael

    #607062
    mondaycreations
    Participant

    Hey everyone –

    I added a custom footer in the child theme, overriding the standard layout. This has caused the video background to be thumbnail size at the top center of the container. Is there a certain piece of code that needs to be left in the footer.php to let the background video function work properly? Thanks for the help!

    Hi!

    No, not sorted unfortunately. That was just bodged together, a picture on the left and then some manually inputted text with a link to the individual blog page. So it has to be manually entered each time they post a blog…

    We want a regular blog page that when a new entry is posted, it appears automatically like the screenshot above… is that possible?

    All the options seem to bring the image above the excerpt, unless it’s a tiny thumbnail photo to the left.

    Thanks

    swisssol
    Participant

    Hello,

    we use the “simple slider” to slide some YouTube-Videos on the website. If autorotation is enabled, the thumbnails are gone away after the rotation starts. The same, if you use the navigation arrows. Is it possible to fix it and hold the thumbnail till the user clicks on play?

    Cheers
    Andreas

    #606896

    Topic: Add image to blog post

    in forum Enfold
    UntappedA
    Participant

    My question is so simple for all of the Developers. I am just a owner of a website that I have to now manage and develop as my desgin agency is no longer operating and I have taken over. I am creating post pages and want to include the thumbnail image. How?
    On the “Single Post Layout” in the themes I have to have some type of image with my post. I have selected “Single post with small preview image (featured image)”
    How do I insert/attach this image?
    My published blog post has an ugly grey pencil image at the top of each page.
    On the News Page (blog post feed) I have a list of Posts and the same ugly grey pencil next to every post.
    Thank you

    #606849

    In reply to: Pinterest Share Button

    That’s interesting, you can change the pattern of the Pinterest share link with this code (functions.php):

    		add_filter('avia_social_share_link_arguments', 'modify_pinterest_pattern', 10, 1);
    		function modify_pinterest_pattern($args)
    		{
    			$args['pinterest'] = array("encode"=>true, "encode_urls"=>true, "pattern" => "http://pinterest.com/pin/create/link/?url=[permalink]&description=[title]&media=[thumbnail]");
    			return $args;
    		}
    
    #606706
    bortsz
    Participant

    Hi!
    I know this question has been asked, but i can’t find the right answer.
    The thumbnails don’t have the same size. Because the images don’t have the same size. And cropping doesn’t work.
    I tried this plugin: “Simple Image Size”. But it didn’t work. Is it because it doesn’t work with the latest WordPress Version?

    I think i did everything, set a new image size, set it to crop, regenerated the pictures…
    Maybe the plugin just needs an update to work with the latest wp-version??

    Thanks in advance!
    Bortsz

    hey yigit,

    this did cause the photo not to stretch, though it cuts out nearly half of the photo in the process.

    specifically, the second picture on this page is where I cannot fix this issue. If you mouse over the thumbnails for this picture, the big image previews that follow are also cut off.

    #606401

    Change the whole block to:

    $custom_link = get_post_meta( $id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $id ,'_portfolio_custom_link_url', true) : false;
    if($custom_link) {
    	$this->loop[$key]['url'] = $custom_link;
    }else{
    	$this->loop[$key]['url'] = wp_get_attachment_image_src(get_post_thumbnail_id($id), 'full')[0];	
    }

    When registering the Members CPT you missed editor from the supports parameter so TinyMCE wasn’t being included there, i’ve changed it to:

    // CPT for Team Members
    function create_posttype() {
    
            register_post_type( 'team_members',
            // CPT Options
                    array(
                            'labels' => array(
                                    'name' => __( 'Team Members' ),
                                    'singular_name' => __( 'Team Member' )
                            ),
                            'public' => true,
                            'supports' => array( 'excerpt', 'thumbnail', 'editor' ),
                            'has_archive' => true,
                            'rewrite' => array('slug' => 'team-members'),
                    )
            );
    }
    mickfollari
    Participant

    HI, strange thing happening. I have created a Custom Post Type in Enfold. When I add the line that supports excerpts and thumbnails (http://screencast.com/t/lEZLI3lNdc), suddenly any pop-up text block editors appear white. My console shows this error: ‘quicktags is not defined’ http://screencast.com/t/7Jpmcr41hE. When I comment out that line in my CPT definition, everything is fine, but I also notice that Firebugging the editor shows a completely different set of classes and wrappers on that same text block editor, simply when I have that line in or out of the CPT definition. I don’t think it’s a plugin since this is what triggers the problem on/off. Everything is up to date, the WP core is 4.4.2 and Enfold is 3.5.

    #606147

    Hi!

    Place this line instead:

    $this->loop[$key]['url'] = wp_get_attachment_image_src(get_post_thumbnail_id($id), 'full')[0];
    

    Regards,
    Josue

    Hello!

    Yes you were right, the right name for CPT was “project”. Ok, now we have a place to check “Don’t display image on single post”, but after I publish the post, that check is not checked anymore and on the front-end post page Featured image is visible.

    Another question is when we get this working, is it possible to use your code more than once? We have another CPT pages too.

    add_filter( 'admin_post_thumbnail_html', 'mmx_cpt_featured_image_meta');
    function mmx_cpt_featured_image_meta( $content ) {
    	global $post, $post_type;
    	if( $post_type == "project" ) {
    		$text = __( "Don't display image on single post", 'avia_framework' );
    		$id = '_avia_hide_featured_image';
    		$value = esc_attr( get_post_meta( $post->ID, $id, true ) );
    		$selected = !empty($value) ? "checked='checked'" : "";
    		$label = '</div><div class="av-meta-extra-inside"><label for="' . $id . '" class="selectit"><input '.$selected.' name="' . $id . '" type="checkbox" id="' . $id . '" value="1" > ' . $text .'</label>';
    		return $content .= $label;
    	}
    	return $content;
    }

    How to use it more than once?

    Best regards,
    Tom

    #605582

    Topic: Define Custom Link

    in forum Enfold
    cbrssict
    Participant

    I have a problem using the AJAX Portfolio. It works great with slideshows, but when I use the ‘Define Custom Link’ and link to a Vimeo video there are a couple of issue.

    Main problem is that the video Lightbox opens over the portfolio featured image which could be way down the window in a big portfolio grid, but the window slides back to the top of the page to show the AJAX preview. This results in the Lightbox being off screen, below the viewable area. A great solution would be to disable the AJAX preview when Define Custom Link is selected. OR to have the Lightbox always open over the AJAX preview area at the top of the portfolio grid- not over the portfolio thumbnail.

    Second, when you open a slideshow over the AJAX preview area and use the large navigation arrows to the far left and right of the screen, the portfolio items get stuck on videos. That is, they will move from one portfolio item to another until they open a video, then they will only open other videos in the grid and will skip over any ‘image’ portfolio items that didn’t use Define Custom Link. This isn’t a major issue, and I will probably just hide the large navigation arrows so a user has to close the Lightbox to move to the next portfolio item.

    The AJAX preview is a great feature and I hope to keep using it as the Open in Lightbox mode doesn’t allow multiple preview images to be viewed.

    #605525

    In reply to: Magazine size

    Thanks! Just a couple more things, is it possible to remove the boarder around thumbnails and make the thumbnails the size to where the boarder was? Also, how do I add “read more” links to each magazine element? and can I change the read more to “read article”

    #605505

    In reply to: Magazine size

    Hi krakers2015!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .av-magazine-thumbnail {
        width: 85px;
        min-height: 85px;
    }
    .av-magazine-entry { 
    min-height: 90px;
    }
    .av-magazine-content-wrap {
        min-height: 90px;
    }
    .av-magazine .av-magazine-content-wrap .av-magazine-title {
        font-size: 17px;
    }

    Regards,
    Yigit

    #605497

    Topic: Magazine size

    in forum Enfold
    krakers2015
    Participant

    Is is possible to make everything in the magazine view bigger? I want the thumbnails and titles to be bigger and still have all the boarders line up. Thanks!

    Hello!

    Thank you for your quick response. I add

    Here is my functions.php in enfold-child, but nothing has changed in Featured Image section, still missing the checkbox. Maybe I did something wrong?

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    add_filter( 'admin_post_thumbnail_html', 'mmx_cpt_featured_image_meta');
    function mmx_cpt_featured_image_meta( $content ) {
    	global $post, $post_type;
    	if( $post_type == "Projects" ) {
    		$text = __( "Don't display image on single post", 'avia_framework' );
    		$id = '_avia_hide_featured_image';
    		$value = esc_attr( get_post_meta( $post->ID, $id, true ) );
    		$selected = !empty($value) ? "checked='checked'" : "";
    		$label = '</div><div class="av-meta-extra-inside"><label for="' . $id . '" class="selectit"><input '.$selected.' name="' . $id . '" type="checkbox" id="' . $id . '" value="1" > ' . $text .'</label>';
    		return $content .= $label;
    	}
    	return $content;
    }

    And here is the functions.php from enfold-folder. I already did some configuration here and they appear in wp-admin. Should I add your code here or what should I do?

    <?php
    function howdy_message($translated_text, $text, $domain) {
        $new_message = str_replace('Howdy', 'Welcome', $text);
        return $new_message;
    }
    
    add_filter('gettext', 'howdy_message', 10, 3);
    
    add_action('init', 'my_custom_init');
    	function my_custom_init() {
    	add_post_type_support( 'news', 'publicize' );
    }
    
    global $avia_config;
    
    /*
     * if you run a child theme and dont want to load the default functions.php file
     * set the global var below in you childthemes function.php to true:
     *
     * example: global $avia_config; $avia_config['use_child_theme_functions_only'] = true;
     * The default functions.php file will then no longer be loaded. You need to make sure then
     * to include framework and functions that you want to use by yourself. 
     *
     * This is only recommended for advanced users
     */
    
    if(isset($avia_config['use_child_theme_functions_only'])) return;
    
    /*
     * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
     */
    $avia_config['posts_on_current_page'] = array();
    
    /*
     * wpml multi site config file
     * needs to be loaded before the framework
     */
    
    require_once( 'config-wpml/config.php' );
    
    /*
     * These are the available color sets in your backend.
     * If more sets are added users will be able to create additional color schemes for certain areas
     *
     * The array key has to be the class name, the value is only used as tab heading on the styling page
     */
    
    $avia_config['color_sets'] = array(
        'header_color'      => 'Logo Area',
        'main_color'        => 'Main Content',
        'alternate_color'   => 'Alternate Content',
        'footer_color'      => 'Footer',
        'socket_color'      => 'Socket'
     );
     
     
    
    /*
     * add support for responsive mega menus
     */
     
    add_theme_support('avia_mega_menu');
    
    /*
     * deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
     */
     
    add_filter('avia_mega_menu_walker', '__return_false');
    
    /*
     * adds support for the new avia sidebar manager
     */
     
    add_theme_support('avia_sidebar_manager');
    
    /*
     * Filters for post formats etc
     */
    //add_theme_support('avia_queryfilter');
    
    /*
     * Register theme text domain
     */
    if(!function_exists('avia_lang_setup'))
    {
    	add_action('after_setup_theme', 'avia_lang_setup');
    	
    	function avia_lang_setup()
    	{
    		$lang = apply_filters('ava_theme_textdomain_path', get_template_directory()  . '/lang');
    		load_theme_textdomain('avia_framework', $lang);
    	}
    	
    	avia_lang_setup();
    }
    
    ##################################################################
    # AVIA FRAMEWORK by Kriesi
    
    # this include calls a file that automatically includes all
    # the files within the folder framework and therefore makes
    # all functions and classes available for later use
    
    require_once( 'framework/avia_framework.php' );
    
    ##################################################################
    
    /*
     * Register additional image thumbnail sizes
     * Those thumbnails are generated on image upload!
     *
     * If the size of an array was changed after an image was uploaded you either need to re-upload the image
     * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
     */
    
    $avia_config['imgSize']['widget'] 			 	= array('width'=>36,  'height'=>36);						// small preview pics eg sidebar news
    $avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    $avia_config['imgSize']['featured'] 		 	= array('width'=>1500, 'height'=>430 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['portfolio_small'] 		= array('width'=>260, 'height'=>185 );						// images for portfolio 4 columns
    $avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    $avia_config['imgSize']['magazine'] 		 	= array('width'=>710, 'height'=>375 );						// images for magazines
    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
    
    $avia_config['selectableImgSize'] = array(
    	'square' 				=> __('Square','avia_framework'),
    	'featured'  			=> __('Featured Thin','avia_framework'),
    	'featured_large'  		=> __('Featured Large','avia_framework'),
    	'portfolio' 			=> __('Portfolio','avia_framework'),
    	'gallery' 				=> __('Gallery','avia_framework'),
    	'entry_with_sidebar' 	=> __('Entry with Sidebar','avia_framework'),
    	'entry_without_sidebar'	=> __('Entry without Sidebar','avia_framework'),
    	'extra_large' 			=> __('Fullscreen Sections/Sliders','avia_framework'),
    	
    );
    
    avia_backend_add_thumbnail_size($avia_config);
    
    if ( ! isset( $content_width ) ) $content_width = $avia_config['imgSize']['featured']['width'];
    
    /*
     * register the layout classes
     *
     */
    
    $avia_config['layout']['fullsize'] 		= array('content' => 'av-content-full alpha', 'sidebar' => 'hidden', 	  	  'meta' => '','entry' => '');
    $avia_config['layout']['sidebar_left'] 	= array('content' => 'av-content-small', 	  'sidebar' => 'alpha' ,'meta' => 'alpha', 'entry' => '');
    $avia_config['layout']['sidebar_right'] = array('content' => 'av-content-small alpha','sidebar' => 'alpha', 'meta' => 'alpha', 'entry' => 'alpha');
    
    /*
     * These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
     * common icons are stored here for easy retrieval
     */
     
     $avia_config['font_icons'] = apply_filters('avf_default_icons', array(
     
        //post formats +  types
        'standard' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue836'),
        'link'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue822'),
        'image'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue80f'),
        'audio'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue801'),
        'quote'   		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue833'),
        'gallery'   	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue80e'),
        'video'   		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue80d'),
        'portfolio'   	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue849'),
        'product'   	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue859'),
        				
        //social		
        'behance' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue915'),
    	'dribbble' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8fe'),
    	'facebook' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8f3'),
    	'flickr' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8ed'),
    	'gplus' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8f6'),
    	'linkedin' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8fc'),
    	'instagram' 	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue909'),
    	'pinterest' 	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8f8'),
    	'skype' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue90d'),
    	'tumblr' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8fa'),
    	'twitter' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8f1'),
    	'vimeo' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8ef'),
    	'rss' 			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue853'),  
    	'youtube'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue921'),  
    	'xing'			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue923'),  
    	'soundcloud'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue913'),  
    	'five_100_px'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue91d'),  
    	'vk'			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue926'),  
    	'reddit'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue927'),  
    	'digg'			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue928'),  
    	'delicious'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue929'),  
    	'mail' 			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue805'),
    					
    	//woocomemrce    
    	'cart' 			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue859'),
    	'details'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue84b'),
    
    	//bbpress    
    	'supersticky'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue808'),
    	'sticky'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue809'),
    	'one_voice'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue83b'),
    	'multi_voice'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue83c'),
    	'closed'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue824'),
    	'sticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue808\ue824'),
    	'supersticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue809\ue824'),
    					
    	//navigation, slider & controls
    	'play' 			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue897'),
    	'pause'			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue899'),
    	'next'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue879'),
        'prev'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue878'),
        'next_big'  	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue87d'),
        'prev_big'  	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue87c'),
    	'close'			=> array( 'font' =>'entypo-fontello', 'icon' => 'ue814'),
    	'reload'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue891'),
    	'mobile_menu'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8a5'),
    					
    	//image hover overlays		
        'ov_external'	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue832'),
        'ov_image'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue869'),
        'ov_video'		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue897'),
        
    					
    	//misc			
        'search'  		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue803'),
        'info'    		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue81e'),
    	'clipboard' 	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue8d1'),
    	'scrolltop' 	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue876'),
    	'scrolldown' 	=> array( 'font' =>'entypo-fontello', 'icon' => 'ue877'),
    	'bitcoin' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'),
    
    ));
    
    add_theme_support( 'automatic-feed-links' );
    
    ##################################################################
    # Frontend Stuff necessary for the theme:
    ##################################################################
    
    /*
     * Register frontend javascripts:
     */
    if(!function_exists('avia_register_frontend_scripts'))
    {
    	if(!is_admin()){
    		add_action('wp_enqueue_scripts', 'avia_register_frontend_scripts');
    	}
    
    	function avia_register_frontend_scripts()
    	{
    		$template_url = get_template_directory_uri();
    		$child_theme_url = get_stylesheet_directory_uri();
    
    		//register js
    		wp_enqueue_script( 'avia-compat', $template_url.'/js/avia-compat.js', array('jquery'), 2, false ); //needs to be loaded at the top to prevent bugs
    		wp_enqueue_script( 'avia-default', $template_url.'/js/avia.js', array('jquery'), 3, true );
    		wp_enqueue_script( 'avia-shortcodes', $template_url.'/js/shortcodes.js', array('jquery'), 3, true );
    		wp_enqueue_script( 'avia-popup',  $template_url.'/js/aviapopup/jquery.magnific-popup.min.js', array('jquery'), 2, true);
    
    		wp_enqueue_script( 'jquery' );
    		wp_enqueue_script( 'wp-mediaelement' );
    
    		if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
    
    		//register styles
    		wp_register_style( 'avia-style' ,  $child_theme_url."/style.css", array(), 		'2', 'all' ); //register default style.css file. only include in childthemes. has no purpose in main theme
    		wp_register_style( 'avia-custom',  $template_url."/css/custom.css", array(), 	'2', 'all' );
    																						 
    		wp_enqueue_style( 'avia-grid' ,   $template_url."/css/grid.css", array(), 		'2', 'all' );
    		wp_enqueue_style( 'avia-base' ,   $template_url."/css/base.css", array(), 		'2', 'all' );
    		wp_enqueue_style( 'avia-layout',  $template_url."/css/layout.css", array(), 	'2', 'all' );
    		wp_enqueue_style( 'avia-scs',     $template_url."/css/shortcodes.css", array(), '2', 'all' );
    		wp_enqueue_style( 'avia-popup-css', $template_url."/js/aviapopup/magnific-popup.css", array(), '1', 'screen' );
    		wp_enqueue_style( 'avia-media'  , $template_url."/js/mediaelement/skin-1/mediaelementplayer.css", array(), '1', 'screen' );
    		wp_enqueue_style( 'avia-print' ,  $template_url."/css/print.css", array(), '1', 'print' );
    		
    		
    		if ( is_rtl() ) {
    			wp_enqueue_style(  'avia-rtl',  $template_url."/css/rtl.css", array(), '1', 'all' );
    		}
    		
    
            global $avia;
    		$safe_name = avia_backend_safe_string($avia->base_data['prefix']);
    		$safe_name = apply_filters('avf_dynamic_stylesheet_filename', $safe_name);
    
            if( get_option('avia_stylesheet_exists'.$safe_name) == 'true' )
            {
                $avia_upload_dir = wp_upload_dir();
                if(is_ssl()) $avia_upload_dir['baseurl'] = str_replace("http://", "https://", $avia_upload_dir['baseurl']);
    
                $avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css';
    			$version_number = get_option('avia_stylesheet_dynamic_version'.$safe_name);
    			if(empty($version_number)) $version_number = '1';
                
                wp_enqueue_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), $version_number, 'all' );
            }
    
    		wp_enqueue_style( 'avia-custom');
    
    		if($child_theme_url !=  $template_url)
    		{
    			wp_enqueue_style( 'avia-style');
    		}
    
    	}
    }
    
    if(!function_exists('avia_remove_default_video_styling'))
    {
    	if(!is_admin()){
    		add_action('wp_footer', 'avia_remove_default_video_styling', 1);
    	}
    
    	function avia_remove_default_video_styling()
    	{
    		//remove default style for videos
    		wp_dequeue_style( 'mediaelement' );
    		// wp_dequeue_script( 'wp-mediaelement' );
    		// wp_dequeue_style( 'wp-mediaelement' );
    	}
    }
    
    /*
     * Activate native wordpress navigation menu and register a menu location
     */
    if(!function_exists('avia_nav_menus'))
    {
    	function avia_nav_menus()
    	{
    		global $avia_config, $wp_customize;
    
    		add_theme_support('nav_menus');
    		
    		foreach($avia_config['nav_menus'] as $key => $value)
    		{
    			//wp-admin\customize.php does not support html code in the menu description - thus we need to strip it
    			$name = (!empty($value['plain']) && !empty($wp_customize)) ? $value['plain'] : $value['html'];
    			register_nav_menu($key, THEMENAME.' '.$name);
    		}
    	}
    
    	$avia_config['nav_menus'] = array(	'avia' => array('html' => __('Main Menu', 'avia_framework')),
    										'avia2' => array(
    													'html' => __('Secondary Menu <br/><small>(Will be displayed if you selected a header layout that supports a submenu <a target="_blank" href="'.admin_url('?page=avia#goto_header').'">here</a>)</small>', 'avia_framework'),
    													'plain'=> __('Secondary Menu - will be displayed if you selected a header layout that supports a submenu', 'avia_framework')),
    										'avia3' => array(
    													'html' => __('Footer Menu <br/><small>(no dropdowns)</small>', 'avia_framework'),
    													'plain'=> __('Footer Menu (no dropdowns)', 'avia_framework'))
    									);
    
    	avia_nav_menus(); //call the function immediatly to activate
    }
    
    /*
     *  load some frontend functions in folder include:
     */
    
    require_once( 'includes/admin/register-portfolio.php' );		// register custom post types for portfolio entries
    require_once( 'includes/admin/register-widget-area.php' );		// register sidebar widgets for the sidebar and footer
    require_once( 'includes/loop-comments.php' );					// necessary to display the comments properly
    require_once( 'includes/helper-template-logic.php' ); 			// holds the template logic so the theme knows which tempaltes to use
    require_once( 'includes/helper-social-media.php' ); 			// holds some helper functions necessary for twitter and facebook buttons
    require_once( 'includes/helper-post-format.php' ); 				// holds actions and filter necessary for post formats
    require_once( 'includes/helper-markup.php' ); 					// holds the markup logic (schema.org and html5)
    
    if(current_theme_supports('avia_conditionals_for_mega_menu'))
    {
    	require_once( 'includes/helper-conditional-megamenu.php' );  // holds the walker for the responsive mega menu
    }
    
    require_once( 'includes/helper-responsive-megamenu.php' ); 		// holds the walker for the responsive mega menu
    
    //adds the plugin initalization scripts that add styles and functions
    
    if(!current_theme_supports('deactivate_layerslider')) require_once( 'config-layerslider/config.php' );//layerslider plugin
    
    require_once( 'config-bbpress/config.php' );					//compatibility with  bbpress forum plugin
    require_once( 'config-templatebuilder/config.php' );			//templatebuilder plugin
    require_once( 'config-gravityforms/config.php' );				//compatibility with gravityforms plugin
    require_once( 'config-woocommerce/config.php' );				//compatibility with woocommerce plugin
    require_once( 'config-wordpress-seo/config.php' );				//compatibility with Yoast WordPress SEO plugin
    
    if(!current_theme_supports('deactivate_tribe_events_calendar'))
    {
    	require_once( 'config-events-calendar/config.php' );		//compatibility with the Events Calendar plugin
    }
    
    if(is_admin())
    {
    	require_once( 'includes/admin/helper-compat-update.php');	// include helper functions for new versions
    }
    
    /*
     *  dynamic styles for front and backend
     */
    if(!function_exists('avia_custom_styles'))
    {
    	function avia_custom_styles()
    	{
    		require_once( 'includes/admin/register-dynamic-styles.php' );	// register the styles for dynamic frontend styling
    		avia_prepare_dynamic_styles();
    	}
    
    	add_action('init', 'avia_custom_styles', 20);
    	add_action('admin_init', 'avia_custom_styles', 20);
    }
    
    /*
     *  activate framework widgets
     */
    if(!function_exists('avia_register_avia_widgets'))
    {
    	function avia_register_avia_widgets()
    	{
    		register_widget( 'avia_newsbox' );
    		register_widget( 'avia_portfoliobox' );
    		register_widget( 'avia_socialcount' );
    		register_widget( 'avia_combo_widget' );
    		register_widget( 'avia_partner_widget' );
    		register_widget( 'avia_google_maps' );
    		register_widget( 'avia_fb_likebox' );
    		register_widget( 'avia_instagram_widget' );
    		
    	}
    
    	avia_register_avia_widgets(); //call the function immediatly to activate
    }
    
    /*
     *  add post format options
     */
    add_theme_support( 'post-formats', array('link', 'quote', 'gallery','video','image','audio' ) );
    
    /*
     *  Remove the default shortcode function, we got new ones that are better ;)
     */
    add_theme_support( 'avia-disable-default-shortcodes', true);
    
    /*
     * compat mode for easier theme switching from one avia framework theme to another
     */
    add_theme_support( 'avia_post_meta_compat');
    
    /*
     * make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
     */
    add_theme_support('force-post-thumbnails-in-widget');
    
    /*
     *  register custom functions that are not related to the framework but necessary for the theme to run
     */
    
    require_once( 'functions-enfold.php');
    
    /*
     * add option to edit elements via css class
     */
    // add_theme_support('avia_template_builder_custom_css');
    

    Best regards,
    Tom

    @tomeez you can simply hook into the filter provided by enfold. Add the following code in your child themes functions.php and change YOUR_POST_TYPE to the name of the cpt you use while registering the custom post type

    add_filter( 'admin_post_thumbnail_html', 'mmx_cpt_featured_image_meta');
    function mmx_cpt_featured_image_meta( $content ) {
    	global $post, $post_type;
    	if( $post_type == "YOUR_POST_TYPE" ) {
    		$text = __( "Don't display image on single post", 'avia_framework' );
    		$id = '_avia_hide_featured_image';
    		$value = esc_attr( get_post_meta( $post->ID, $id, true ) );
    		$selected = !empty($value) ? "checked='checked'" : "";
    		$label = '</div><div class="av-meta-extra-inside"><label for="' . $id . '" class="selectit"><input '.$selected.' name="' . $id . '" type="checkbox" id="' . $id . '" value="1" > ' . $text .'</label>';
    		return $content .= $label;
    	}
    	return $content;
    }
    #605047
    rseybold
    Participant

    When using https I have the problem that specially within the blog the “thumbnails” (for example the left/right navigation with thumbnail pictures) does show a broken image because of http://&#8230;.
    If I use Firebug and change this to https everything is fine and shown well…

    How can I change this in enfold?

    #604755
    fmiron
    Participant

    Hello,
    I’m having trouble with modifying the image size array.
    I want to remove and add via a child themes’ functions.php image sizes.

    I’ve tried to use the method presented here: https://kriesi.at/support/topic/generate-new-image-sizes-in-child-theme/#post-129951 – which was referenced in other threads but it seems it doesn’t work.

    This is the code that is added inside my child themes functions.php

    function avia_change_image_size_array() {
    	global $avia_config;
    	$avia_config['imgSize']['square'] 		 	    = array('width'=>180, 'height'=>180);		                 // small image for blogs
    	$avia_config['imgSize']['featured_large'] 		= array('width'=>1500, 'height'=>630 );						// images for fullsize pages and fullsize slider
    	$avia_config['imgSize']['extra_large'] 		 	= array('width'=>1500, 'height'=>1500 , 'crop' => false);	// images for fullscrren slider
    	$avia_config['imgSize']['gallery'] 		 		= array('width'=>845, 'height'=>684 );						// images for portfolio entries (2,3 column)
    	$avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>321);		            	// big images for blog and page entries
    	$avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
    }
    
    add_action( 'init', 'avia_change_image_size_array');

    I’m testing this on a local server via MAMP, using Enfold 3.5 with a child theme, and I’ve used Regenerate Thumbnails plugin: https://wordpress.org/plugins/regenerate-thumbnails/

    Am I missing something?

    Hey Jordan – thanks for continuing to help me out with enfold.

    Login information is below. Here are some of the particular pages where the image stretching is happening.
    http://www.estlandhosting.com/~frazier/portfolio-item/vmi-post-hospital/
    http://www.estlandhosting.com/~frazier/portfolio-item/draper-house/
    http://www.estlandhosting.com/~frazier/portfolio-item/goode-garage-needs-new-name/

    Also, these two pages (below) have a thumbnail image that is different sized than the others. Wondering why that is:
    http://www.estlandhosting.com/~frazier/portfolio-item/perdeberg-farm-barn/
    http://www.estlandhosting.com/~frazier/portfolio-item/newtown-victorian/

    My goal is to have the Big Image crop (instead of stretch to fit) and the thumbnails all the same exact size. Thanks in advance!

    rickyporco
    Participant

    Hey Enfold team,

    I have a client whose having a ton of trouble with the ‘Gallery’ shortcode. We cant seem to find any combination of settings that won’t stretch the ‘big image’ above the thumbnails – when images are different sizes and orientations when using the gallery shortcode. Please see attached page for an example – the second of the thumbnail images is being stretched up and down, no matter what size I choose.

    I have tried downloading the simple image sizes plugin and regenerating thumbnails as some other threads have suggested, but cant seem to work out the correct settings.

Viewing 30 results - 5,401 through 5,430 (of 10,101 total)