Forum Replies Created

Viewing 30 posts - 46,501 through 46,530 (of 67,597 total)
  • Author
    Posts
  • in reply to: Allowing different templates for different posts #517806

    Hi!

    Since you’re using the default post, you can modify the single.php file. Look for this code:

    get_header();
    

    .. add a conditional function. Something like this:

    if ( is_category('athletics') ) { 
    	get_header('athletics');
    } else {
    	get_header();
    }

    Regards,
    Ismael

    Hi!

    Please try this:

    add_action('admin_head', function() {
    if(current_user_can('editor')){
    	?>
    	<style>
            .shortcode_insert_button {
                display: none;
            }
    
    		a[href="#avia_sc_text"], a[href="#avia_sc_hr"], a[href="#avia_sc_heading"] a[href="#avia_sc_image"], a[href="#avia_sc_gallery"], a[href="#avia_sc_gmaps"] {
    			display: block;
    		}
    	</style>
        <?php
       }
    });

    Cheers!
    Ismael

    in reply to: Custom Social Icons – Showing wrong Fontello icons #517803

    Hi!

    I checked the site and it’s working. The spotify and the other icons are rendering properly. Please remove browser cache.

    Best regards,
    Ismael

    in reply to: Previous and Next Post Popout Links at Edges of Window #517487

    Hi!

    It’s a different filter, “avia_post_nav_entries”. Please try it then remove browser cache before testing the page.

    Cheers!
    Ismael

    in reply to: Align partners logo on one row on mobile #517272

    Hey!

    Yes, we know. Did you try it? It will align the icons in a HORIZONTAL row or line. Please remove the first code.

    @media only screen and (max-width: 768px) {
    .responsive #top #wrap_all .avia-content-slider-even .slide-entry.slide-parity-odd, .responsive #top #wrap_all .avia-content-slider-odd .slide-entry.slide-parity-even {
        padding: 0 2%;
        float: left;
        width: 23% !important;
        clear: none !important;
    }
    }

    If it doesn’t work, use this:

    @media only screen and (max-width: 480px) {
    .responsive #top #wrap_all .avia-content-slider-even .slide-entry.slide-parity-odd, .responsive #top #wrap_all .avia-content-slider-odd .slide-entry.slide-parity-even {
        padding: 0 2%;
        float: left;
        width: 23% !important;
        clear: none !important;
    }
    }

    Please remove browser cache or hard refresh the page.

    EDIT: My bad! It should be max-width, not min-width. Sorry about that.

    Regards,
    Ismael

    in reply to: How to apend additional icon font #517266

    Hi!

    That’s too bad. Are you sure it’s not working? I actually tested it again and it works fine. I uploaded the same set of icon but with a different name and it didn’t override the first one. I have two similar icons sitting in the icon selection area.

    https://kriesi.at/support/topic/how-to-apend-additional-icon-font/#post-514902

    Regards,
    Ismael

    in reply to: Gallery Questions #517261

    Hey mcraig77!

    Thank you for using Enfold.

    Add this in the Quick CSS field:

    #top .avia-gallery .avia-gallery-thumb a {
        opacity: .5;
    }
    
    #top .avia-gallery .avia-gallery-thumb a:hover {
        opacity: 1;
    }

    Cheers!
    Ismael

    in reply to: Custom font button #517259

    Hey mcraig77!

    Thank you for using Enfold.

    Where did you upload the font? Please try this in the Quick CSS field:

    .phone-info:before {
        content: '\E832';
        font-family: 'entypo-fontello';
    }

    Cheers!
    Ismael

    in reply to: Grid row height #517254

    Hey!

    If you want to adjust the height of the section, edit the grid row element then add a unique id in the Section ID field, use “custom-grid” for example. Add something like this in the Quick CSS field:

    #custom-grid { height: 200px; }
    

    Cheers!
    Ismael

    in reply to: Search Widget only in mobile view #517247

    Hey!

    It’s actually possible to add the search bar inside the mobile menu. Would you like something like that? Add this in the functions.php file:

    add_filter( 'wp_nav_menu_items', 'avf_add_search', 3, 2 );
    function avf_add_search( $items, $args ) {
    	if ($args->theme_location == 'avia')
    	{
    		$search = '<li id="menu-item-search-mobile" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-18 current_page_item menu-item-top-level menu-item-top-level-5">'.get_search_form(false).'</li>';
    		$items = $search . $items;
    	}
    	return $items;
    }
    

    After that, use this in the Quick CSS field:

    @media only screen and (max-width: 767px) {
    	#top #searchform>div {
    		display: block !important;
    		opacity: 1 !important;	
    	}
    }
    

    If you only want the icon in the header, use this in the Quick CSS field:

    @media only screen and (max-width: 767px) {
    .main_menu .avia-menu, #header_main_alternate, .fallback_menu {
        display: block;
    }
    
    .main_menu .avia-menu li { display: none; }
    
    .main_menu #menu-item-search {
        z-index: 100;
        display: block;
        position: absolute;
        left: 430px;
        top: -80px;
    }
    }

    Cheers!
    Ismael

    in reply to: ROBOTS.TXT Discussion #517237

    Hey!

    Thank you for using Enfold.

    I think you will get more help if you consult SEO gurus like Yoast developer “Joost de Valk”. You can open a thread in the Yoast forum. He actually created a very short article about robot.txt and from there I will quote:

    WordPress Robots.txt suggestions by YoastThe robots.txt file is a very powerful file if you’re working on a site’s SEO, but one that also has to be used with care. It allows you to deny search engines access to certain files and folders, but that’s very often not what you want to do. Over the years, especially Google changed a lot in how it crawls the web, so old best practices are no longer valid.

    This is the link to the article: https://yoast.com/wordpress-robots-txt-example/

    Cheers!
    Ismael

    in reply to: Active link / hover color on sticky header #517234

    Hey!

    Please add this to disable the transition effect:

    .av-main-nav > li > a {
        -webkit-transition: none;
        transition: none;
    }

    Use this to adjust the size of the hover fx:

    .avia-menu-fx {
        position: absolute;
        bottom: -1px;
        height: 5px;
    }

    Cheers!
    Ismael

    in reply to: Adding reCAPTCHA for Comments #517229
    in reply to: Allowing different templates for different posts #517225

    Hi!

    Why did you get a copy of the category.php file from the wp-includes folder? It’s not a template file. Please refer to this link: https://developer.wordpress.org/themes/basics/template-hierarchy/#category

    Regards,
    Ismael

    in reply to: Customize 404 error Page to remove popular and comments #517222

    Hey!

    Please add this in the functions.php file:

    
    	class avia_combo_widget extends WP_Widget {
    
    		function __construct() {
    			//Constructor
    			$widget_ops = array('classname' => 'avia_combo_widget', 'description' => 'A widget that displays your popular posts, recent posts, recent comments and a tagcloud' );
    			parent::__construct( 'avia_combo_widget', THEMENAME.' Combo Widget', $widget_ops );
    		}
    
    		function widget($args, $instance)
    		{
    			// prints the widget
    
    			extract($args, EXTR_SKIP);
    			$posts = empty($instance['count']) ? 4 : $instance['count'];
    
    			echo $before_widget;
    			echo "<div class='tabcontainer border_tabs top_tab tab_initial_open tab_initial_open__1'>";
    			if(!is_404()) {
    			echo '<div class="tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    			echo "</div>";
    			}
    
    			echo '<div class="tab widget_tab_recent first_tab active_tab"><span>'.__('Recent', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    			echo "</div>";
    			
    			if(!is_404()) {
    			echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content active_tab_content'>";
    			avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );
    			echo "</div>";
    			}
    			
    			echo '<div class="tab last_tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content tagcloud'>";
    			wp_tag_cloud('smallest=12&largest=12&unit=px');
    			echo "</div>";
    
    			echo "</div>";
    			echo $after_widget;
    		}
    
    		function update($new_instance, $old_instance)
    		{
    			$instance = $old_instance;
    			foreach($new_instance as $key=>$value)
    			{
    				$instance[$key]	= strip_tags($new_instance[$key]);
    			}
    
    			return $instance;
    		}
    
    		function form($instance) {
    			//widgetform in backend
    
    			$instance = wp_parse_args( (array) $instance, array('count' => 4) );
    			if(!is_numeric($instance['count'])) $instance['count'] = 4;
    
    	?>
    			<p>
    			<label for="<?php echo $this->get_field_id('count'); ?>">Number of posts you want to display:
    			<input class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo esc_attr($instance['count']); ?>" /></label></p>
    
    		<?php
    		}
    	}	

    Regards,
    Ismael

    in reply to: Non-clickable Menu Item to Display Category Items #517220

    Hi!

    I tried to login to the site but it’s not working. I’m not sure how Elliott managed to access the dashboard. Did you create another user? Please post the new login details and the url to the page with the issue.

    Cheers!
    Ismael

    in reply to: not displaying a sub-menu #517218

    Hey!

    Could you please provide a screenshot of the changes that you want to make? I checked the page (http://memorial-verdun.fr/516-2/) and the submenu under “Espace pédagogique” displays fine. Use imgur or dropbox for the screenshot.

    Regards,
    Ismael

    in reply to: Adding Custom Colors to Text Color Picker #517215

    Hey!

    Click the “Custom” text to add a custom color. I’m not sure if this is going to be saved in another text block. If not, you can always use the hex value of the color.

    Regards,
    Ismael

    in reply to: slider not showing as built #517212

    Hey!

    Set the master Slide duration to the sum of the layers’ duration. I set it to 10000 ms for now. http://nvleadership.com/sample-page/

    Cheers!
    Ismael

    in reply to: adding number next to the stars in the product reviews #517204

    Hi!

    You can add this in the functions.php file:

    
    function add_custom_script(){
    ?>
    <script>
    jQuery(document).ready(function(){
    var title = jQuery('.star-rating').attr('title');
    jQuery('.star-rating').append(title);
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Or try this in the Quick CSS field:

    .entry-summary .woocommerce-product-rating .star-rating:before {
        content: attr(title);
        position: absolute;
        width: 200px;
        display: block;
        bottom: -20px;
        font-size: 12px;
    }

    Regards,
    Ismael

    Hey!

    We can adjust the position of the secondary menu in the Quick CSS field. Please post the actual website url here.

    #top .sub_menu>ul {
        float: none;
        display: inline-block;
    }
    
    #top .sub_menu {
        float: none;
        text-align: center;
    }

    Cheers!
    Ismael

    in reply to: Textbearbeitung in Advanced Layout Designer unmöglich #517191

    Hey!

    Great! Glad it fixed itself. :)

    Cheers!
    Ismael

    Hi!

    Please provide a link to the actual post with the issue. We can use a filter in the functions.php file to modify the breadcrumb’s output. Example:

    add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 );
    function avia_breadcrumbs_trail_mod( $trail, $args ) {
    	
    	if ( is_single() ) {
    		unset($trail[1]);		
    	}	
    	return $trail;
    }

    Cheers!
    Ismael

    in reply to: changing background color #517180

    Hi!

    I’m sorry but I don’t see anything brown in the site. Could you please provide a screenshot? Use imgur or dropbox. Note that you can use the color section element to create an area with different background.

    Cheers!
    Ismael

    in reply to: Quote post title like in a Standard one #517178

    Hey Anton!

    Thank you for using Enfold.

    Please add this in the functions.php file:

    /**
     *  Function for posts of type quote: title is wrapped in blockquote tags instead of h1
     */
    function avia_quote_content_filter($current_post)
    	{
    		if(!empty($current_post['title']))
    		{
    			//$current_post['title'] 		= "<div class='". avia_offset_class('meta', false). "'><h1 class='first-quote'>".$current_post['title']."</h1></div>";
    			$current_post['title'] 		= "<h1 class='first-quote' ".avia_markup_helper(array('context' => 'entry_title','echo'=>false)).">".$current_post['title']."</h1>";
    		}
    		return $current_post;
    	}

    Regards,
    Ismael

    in reply to: LOGO TOP #517170

    Hey carmycurly!

    Thank you for using Enfold.

    Please add this in the Quick CSS field:

    .logo, .logo a, .logo a img {
        max-height: 256px !important;
        overflow: visible;
    }

    Best regards,
    Ismael

    in reply to: Align logo to heading #517167

    Hey!

    Thank you for using Enfold. Glad you found a way to fix this. Let us know if you need anything else. :)

    Best regards,
    Ismael

    in reply to: Woocommerce change shopping cart icon to different icon #517165

    Hi!

    Thank you for using Enfold.

    Please try to add this in the functions.php file in order to change the icon:

    add_action('init', 'avia_replace_default_icon', 10, 1);
    function avia_replace_default_icon($icons) { 
    	global $avia_config;
    	
    	$avia_config['font_icons']['cart']['icon'] = 'ue800';
            $avia_config['font_icons']['cart']['font'] = 'fontello';
    	return $icons;
    }

    Adjust the font set (fontello in the example) to the font set where the uploaded icon belong.

    Regards,
    Ismael

    Hi!

    You need to have the Social Meta Module panel in the seo plugin to enable the og tags but I don’t see it in the dashboard, must be a plugin conflict. Please contact the plugin author. http://semperplugins.com/documentation/social-meta-module/

    You can also try the jetpack’s open graph settings.

    Best regards,
    Ismael

    in reply to: How to switch date order in French from English #517149

    Hi tremblayly!

    Thank you for using Enfold.

    Please try this in the functions.php file:

    // filter time
    add_filter('get_the_time', function($d) {
    	global $sitepress;
    	if($sitepress->get_current_language() == 'fr') {
    		$d = 'j F y';
    	}
    	
    	return $d;
    }, 10, 1);

    If you can open a new ticket in the WPML support, it will help as well.

    Best regards,
    Ismael

Viewing 30 posts - 46,501 through 46,530 (of 67,597 total)