Viewing 30 results - 481 through 510 (of 986 total)
  • Author
    Search Results
  • #742242
    GroetenvanMarc
    Participant

    Hi,
    i chose to display the logo and main menu area on the left side of my desktop layout. I also placed some widgets there (in the widget area called “displayed everywhere”) like a google map, and latest posts.
    On desktop this looks fine, but on mobile when tapping the menu icon, it opens to show only the main menu, and no widgets, and also no social icons.

    #740662

    Hi,

    I enabled social icons in footer and then copied the code once again and updated your code in widget area. Please review your website now :)

    Best regards,
    Yigit

    #739157
    webWahine
    Participant

    Hello

    I have this functioning nicely in a footer column widget –

    <ul class="noLightbox social_bookmarks icon_count_4">
    	
    			<li class="social_bookmarks_youtube av-social-link-youtube social_icon_1"><a target="_blank" href="https://www.youtube.com/user/LedmacVideos?feature=mhum" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Youtube"><span class="avia_hidden_link_text">Youtube</span></a></li>
    				
    	<li class="social_bookmarks_facebook av-social-link-facebook social_icon_2"><a target="_blank" href="https://www.facebook.com/Ledingham-McAllister-137112966347735/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"><span class="avia_hidden_link_text">Facebook</span></a></li>
    		
    	<li class="social_bookmarks_twitter av-social-link-twitter social_icon_3"><a target="_blank" href="https://twitter.com/LedMacHomes" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"><span class="avia_hidden_link_text">Twitter</span></a></li>
    	
    	<li class="social_bookmarks_gplus av-social-link-gplus social_icon_4"><a target="_blank" href="https://plus.google.com/111072152392415957394" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Gplus"><span class="avia_hidden_link_text">Gplus</span></a></li>	
    					
    </ul>

    The client wants to add instagram so I added in this –

    <ul class="noLightbox social_bookmarks icon_count_5”>
    
    <li class="social_bookmarks_youtube av-social-link-youtube social_icon_1"><a target="_blank" href="https://www.youtube.com/user/LedmacVideos?feature=mhum" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Youtube"><span class="avia_hidden_link_text">Youtube</span></a></li>
    
    <li class="social_bookmarks_facebook av-social-link-facebook social_icon_2"><a target="_blank" href="https://www.facebook.com/Ledingham-McAllister-137112966347735/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook"><span class="avia_hidden_link_text">Facebook</span></a></li>
    
    <li class="social_bookmarks_twitter av-social-link-twitter social_icon_3"><a target="_blank" href="https://twitter.com/LedMacHomes" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter"><span class="avia_hidden_link_text">Twitter</span></a></li>
    
    <li class="social_bookmarks_gplus av-social-link-gplus social_icon_4"><a target="_blank" href="https://plus.google.com/111072152392415957394" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Gplus"><span class="avia_hidden_link_text">Gplus</span></a></li>
    
    <li class="social_bookmarks_instagram av-social-link-instagram social_icon_5”><a target="_blank" href="https://www.instagram.com/ledmachomes/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title=“Instagram”><span class="avia_hidden_link_text">Instagram</span></a></li>
    
    </ul>

    What happens, though, is the icons are not displaying properly.

    Instagram doesn;t show up and the first one is our of alignment and grey. Please advise. Thanks! :)

    #738277

    Topic: Mobile menu update

    in forum Enfold
    borkent
    Participant

    Hi All,

    Can anyone here tell me when the mobile menu will get an update. Its so out of date, enfold will be 500% better if this could be a little more modern. I have resulted in using paid shiftnav for this, altho it seems that for a simple mobile solution we shouldnt need this. I have seen so many posts on the mobile menu, I am just wondering when we can expect this important item to get an overhaul.

    Mobile menu should have options:
    1. Animated icon (multiple options?)
    2. Option: slide down (overlay or push content), side menu (overlay or push wrapper)
    3. Hamburger menu also on mobile (ofcourse!)
    4. Smart submenus (slide down or new panel)
    5. Widgetized area above and below of
    Menu
    6. Social icons inside menu
    7. Search inside menu
    8. Option to have fixed menu also on mobile
    9. Extra: normal menu logo inline in middle of me u items.

    Come on all you must agree, enfold is slacking here!

    Lets not post here about “feature requests” it takes too long and this is needed to make enfold nr1, the avia builder is awesome and far better than any other builder out there, even the new divi3 builder is harder to work with, bloated with options. Enfolds avia builder is a builder anyone can work with!

    Anybody who agrees here please reply! The wait has been far too long! Maybe Kriesi will hear us!

    Kind regards,
    Thomas

    #738063
    hingex
    Participant

    I followed these instructions to create social icons in the footer (https://kriesi.at/support/topic/enfold-social-media-icons-in-widget/), however, I would like to align the icons centrally like the rest of the code in this part fo the footer. Much thanks

    #734724

    Hi,

    Great, thanks for that. I can see the widget content on your site, it sits just under the social icons. I’m guessing you want to place them somewhere else?

    Best regards,
    Rikard

    #734407

    Topic: Adding A yelp icon

    in forum Enfold
    mcraig77
    Participant

    hi,

    I’m having some trouble adding a yelp icon my theme. I’m following this thread http://kriesi.at/documentation/enfold/custom-social-icons/

    I added this code using the snippet widget to the functions.php but I get an error. I’m not using a child theme.

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    	$icons['yelp']	 = array( 'font' =>'fontello', 'icon' => 'uf1e9');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    	$icons['yelp = 'yelp';
    	return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    
    #734397

    Hey mcraig77,

    I think the phone number should be added not in widget but in Enfold > Header > Extra Elements > Header Phone Number/Extra Info (set this to Display in top bar at the right) > Phone Number or small info text and place the phone number there.

    As for the social icons, just add this css code in Quick CSS (located in Enfold > General Styling):

    .html_bottom_nav_header #top .av-logo-container .social_bookmarks {
        margin-top: 0;
        top: 100px;
    }

    just adjust the top value as you see fit. Hope this helps :)

    Best regards,
    Nikko

    markkus2
    Participant

    Hello, i tried to turn on the custom css support for all ALB elements and since then when i try to save/actualize a page in the backend, the page always will show a blank page afterwards (by the way, it saved itself but just leave a blank page, reloading doesn’t help).
    I also deleted the css ALB code again from the function.php (enfold and child), restarted the server and the computer, but nothing has helped.
    I guess i hasn’t forgotten any code … or added:

    enfold-child (functions.php):
    <?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.
    */

    /*m_code Adding Google Font*/

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Merienda’] = ‘Merienda’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Source Sans Pro’] = ‘Source Sans Pro:400,600,800’;
    return $fonts;
    }

    ?>

    enfold-child (functions.php):

    <?php
    if ( !defined(‘ABSPATH’) ){ die(); }

    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’);

    /*
    * add support for improved backend styling
    */

    add_theme_support(‘avia_improved_backend_style’);

    /*
    * 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();
    }

    /*
    function that changes the icon of the theme update tab
    */

    if(!function_exists(‘avia_theme_update_filter’))
    {
    function avia_theme_update_filter( $data )
    {
    if(current_theme_supports(‘avia_improved_backend_style’))
    {
    $data[‘icon’] = (Email address hidden if logged out) ‘;
    }
    return $data;
    }

    add_filter(‘avf_update_theme_tab’, ‘avia_theme_update_filter’, 30, 1);
    }

    ##################################################################
    # 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://&#8221;, “https://&#8221;, $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’, ‘avia_framework’).’ <br/><small>(‘.__(‘Will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’).’ ‘.__(‘here’, ‘avia_framework’).’)</small>’,
    ‘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’);

    /*
    * display page titles via wordpress default output
    */
    function av_theme_slug_setup()
    {
    add_theme_support( ‘title-tag’ );
    }

    add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );

    /*title fallback*/
    if ( ! function_exists( ‘_wp_render_title_tag’ ) )
    {
    function av_theme_slug_render_title()
    {
    echo “<title>” . avia_set_title_tag() .”</title>”;
    }
    add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
    }

    /*
    * 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’);

    #733561
    joerka27
    Participant

    Hey Enfold Team,
    I’d like to have a second footer (additionally to the normal widget-footer and the socket) only with big centered social icons and above the main footer.

    I managed to get the social icons in with inserting the following code into the footer.php (copied and modified in child theme) from another thread:

    				<!--PR second footer w social icons -->
    				<div class='container_wrap footer_2_color'>
    				<?php $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => ''); avia_social_media_icons($social_args); ?>
    				</div>
    

    so the whole section looks like

    			if( $footer_widget_setting != 'nofooterwidgets' )
    			{
    				
    				
    				
    				//get columns
    				$columns = avia_get_option('footer_columns');
    		?>
    				<!--PR second footer w social icons -->
    				<div class='container_wrap footer_2_color'>
    				<?php $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => ''); avia_social_media_icons($social_args); ?>
    				</div>
    				
    				<div class='container_wrap footer_color' id='footer'>
    
    					<div class='container'>
    
    						<?php
    						do_action('avia_before_footer_columns');
    
    						//create the footer columns by iterating

    I added some CSS to get it centered and bigger, but it was only quick and dirty and does only work in FF & IE, not in Chrome. Is there a chance you can help me with some proper code?
    What I have right now:

    /* Footer2 Social Icons */
    .footer_2_color .social_bookmarks li a {
    	font-size: 40px !important;
    	line-height: 40px!important;
    	border-radius: 300px!important;
    	display: block!important;
    	text-align: center!important;
    	float: none!important;
    	border: none!important;
    }
    .footer_2_color .social_bookmarks li {
    	margin: 30px;
    	float: none!important;
    	display: inline-block!important;
    	border: none!important;
    	width: 50px!important;
    }
    .footer_2_color .social_bookmarks a {
    	color: #fff;
    }
    .footer_2_color ul.social_bookmarks {
    	width: 30%;
    	margin: auto!important;
    	line-height: 80px!important;
    	height:	100%!important;
    }
    .footer_2_color div {
    	height: 100px!important;
    	border: none!important;
    }

    Thanks in advance!

    #732952
    omardimassi
    Participant

    Hello,

    I run into a problem. I’m trying to add a custom css section to my element builder.
    I saw documantation about it and I follow the steps but it dont work.

    When I paste this line: add_theme_support(‘avia_template_builder_custom_css’); into my functions.php nothing happens. Maybe can you guys help me out what the problem is.
    This is my function.php page:

    <?php

    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://&#8221;, “https://&#8221;, $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 here)</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’);

    ————————————————

    I hope to hear from you guys soon!

    #732827
    mcraig77
    Participant

    Ahoy,

    I followed this help article to add a widget to the right of the logo. http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/ is there a way to have the widget with the phone number be on top on one line of the social icons on the right and have the social icons brought down centered in the height of the menu so they do not overlap the new header widget? I have added the code below.

    #header .widget {
        right: 20px;
        padding-top: 0;
        position: absolute;
        top: 30px;
        transform: translate(-50%);
        z-index: 999;
    }
    #729283

    In reply to: Reduce Logo Padding

    You are correct about the widget, thanks for pointing that out! I disabled that and the top white space reduced. I will play with the code and see how my limited knowledge of CSS does with it :) By reversing the colors I at least got it to appear inside the logo block so its a start. I think it actually looks pretty nice whether intentional or not.

    One strange thing though. Any idea why the social icons and phone number would be one way on a certain browser but reversed on others? Chrome is correctly showing the social on the right but Safari and Firefox have it on the left. I’ve cleared the cache on all to make sure but it’s still different. No big deal but I am curious.

    Thanks!

    #728558

    In reply to: remove padding/margin

    Hey DD!

    1- Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    #footer #simple-social-icons-2 {
        margin-top: 0!important;
    }
    #footer #wysiwyg_widgets_widget-2 {
        margin-bottom: 5px;
    }
    

    2- Please add following code to Functions.php file in Appearance > Editor

    
    add_filter('avf_title_tag','avia_new_title');
    function avia_new_title() {
    $title = get_bloginfo('name');
    return $title; 
    }

    Best regards,
    Yigit

    #726029

    Hey!

    “Enfold Facebook Likebox” shows the likebox and “Enfold Instagram” displays your Instagram content :)

    Edit: If you would like to display your social icons, please copy the code i posted in private content field and paste it into text widget and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .widget .social_bookmarks li {
        clear: none!important;
    }

    Cheers!
    Yigit

    • This reply was modified 9 years, 2 months ago by Yigit.
    #725716

    Topic: widget centered footer

    in forum Enfold
    jimbeamkentucky
    Participant

    Hi,
    I think I did something wrong but don’t know what..
    My social icons widget are not centered in responsive mode anymore despite the code which worked few days ago…

    Thank you for your help

    #simple-social-icons-2 li, #simple-social-icons-2 {
    width: 100%;
    text-align: center;
    }

    #724985

    Thank you so much,

    Is there a way to put the whatsapp icon on the footer widgets?

    i try to modify it because on other threads mention how to do it, but i still get a “square” figure, instead of the whatsapp icon.

    footer social media

    #722836
    jimbeamkentucky
    Participant

    Hi,
    I’ve installed Simple Social Icon widget and I would like to center the social icons on both responsive mode and desktop
    Thank you

    #722541

    In reply to: mobile menu toggle

    Hi Nikko,

    It’s perfect now, that a lot of code for such small changes :)

    Could you help me with a widget problem? I have installed Simple Social Icon plugin and it’s working great, I’ve set it to align the social icons one under the other and position: fixed; so it scrolls down with my page.

    I would like to change it only for responsive mode, so the icons align one next to each other and in the bottom of the page in order to not bother the reader.

    I’m very grateful for you help
    Kind regards
    Christian

    #719806

    Hi,

    No, the problem isn’t resolved. The text “This is a test of a header widget area” is on top of the two social icons in responsiv design: http://site3.graphiceye.dk/wp-content/uploads/2016/12/Skærmbillede-2016-12-02-kl.-15.50.34.png. Not that good.

    Best regards,
    Helle

    #717409

    Hi,

    I don’t no which site you are referring to, but on this site http://site3.graphiceye.dk/ I have added a widget area to the header with the text “This is a test of a header widget area” (I have followed this instruction: http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/). This text I want to be shown in the top bar along with the social media icons.

    Best regards,
    Helle

    #715764

    Hey manuelap,

    1. Please use a seo plugin like Yoast SEO to make these changes to the title. https://wordpress.org/plugins/wordpress-seo/
    2. To align the social icons closer to contact info please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    #footer .widget.simple-social-icons {
        margin-top:-30px!important;
    }
    

    Best regards,
    Vinay

    #715625

    Okay, thank you Basilis!

    So, this will be my wish for the future: A social icon share widget for the footer.

    Best regards,
    André

    #715334

    But how would I get both the social icons and an image in that widget and what would be the CSS to position it on the right where the social icons are?

    You can’t copy the source of them – it doesn’t work.

    #715201

    Hey Anni0758g,

    1. To add a social share icon in footer widget area please drag and drop a text widget and paste the below code into it.
    Change the href=”#” to your respective social profile links.
    http://pastebin.com/raw/cC8p3VM5

    2. Please use the Latest News widget.

    3. I noticed you already have the green triangle in place.

    To selectively target links in a text box please enable custom css class name support http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ add a custom css class name to the textbox area and use the same class name to target the links inside the textbox.

    Hope we were able to answer your questions in case you have any queries please feel free to get back to us :)

    Best regards,
    Vinay

    • This reply was modified 9 years, 3 months ago by Vinay.
    #715037
    André
    Participant

    Hi there, thank you for creating and supporting this great theme!
    My upcoming website is still in this subdomain: http://s198644800.online.de

    I want to do three things before the website goes live under its real adress:

    1. I want to add social share icons in the footer (unfortunately there is no widget for that, would be a good idea for the future). I would like to have four share icons in the fourth column: facebook, twitter, google+ and E-Mail. The icons should share the site where the user is on. Yigit had a solution for social media buttons in #273363 Maybe something similar works for Share Buttons?

    2. In my Texter-Blog there is a preview of more articles on the sidebar on the right. Is there a way to add mini thumbnails to that? I think I saw it once when using portfolio pages … but when I tried again, there where also no thumbs.

    3. As you can see I added a green triangle to mark links in the textboxes. (So you can differentiate links from the bold text, which is also orange) Is there a code for the general styling, to put the green triangle before all links in textboxes so that I do not have to add them all manually?

    Thank you! You are doing a great job!

    frankeee
    Participant

    I would like to change the Icon like in this thread:

    … but the suggestions her don´t work for me. So I will ask for a more simple way: Just copying the rendered HTML:

    <section id="avia_socialcount-3" class="widget clearfix avia_socialcount">
    <a href="#" class="asc_twitter asc_multi_count"><br>
    <span class="social_widget_icon" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span><br>
    <strong class="asc_count">Folgen</strong><span>auf Twitter</span></a><p></p>
    <p><a href="#" class="asc_rss asc_multi_count"><span class="social_widget_icon" aria-hidden="true" data-av_icon="ue801" data-av_iconfont="entypo-fontello"></span><strong class="asc_count">Abonnieren</strong><span>den RSS Feed</span></a><br>
    <span class="seperator extralight-border"></span><br>
    </p></section>

    … and change the icons. But I don´t know how to change them? Do you have an idea?

    hey thanks for answering!
    If I put the function in the child function.php (like Basisis recommented) – I will get a white screen!
    Also if I do it like Yigit says – a white screen!

    The simpliest way would be just copying the rendered HTML:

    <section id="avia_socialcount-3" class="widget clearfix avia_socialcount">
    <a href="#" class="asc_twitter asc_multi_count"><br>
    <span class="social_widget_icon" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span><br>
    <strong class="asc_count">Folgen</strong><span>auf Twitter</span></a><p></p>
    <p><a href="#" class="asc_rss asc_multi_count"><span class="social_widget_icon" aria-hidden="true" data-av_icon="ue801" data-av_iconfont="entypo-fontello"></span><strong class="asc_count">Abonnieren</strong><span>den RSS Feed</span></a><br>
    <span class="seperator extralight-border"></span><br>
    </p></section>

    … and change the icons. But I don´t know how to change them? Do you have an idea?

    #710448

    OK, the image below shows that I have gotten a little closer by turning on the ability to see the shortcodes. But, I would still like to:

    (1) Have a rollover effect on hover identical to the one in the header. In the header, the icon gets a background color matching the social media channel’s brand color upon hover. (e.g. when rollover Google Plus icon, a red circle appears)

    (2) Keep the icon color (green) when the IconBox shortcode is placed within a widget.

    (3) Remove the <H3> tag around the IconBox Title field.

    I’m starting to understand this will require the use of a custom CSS class. Some really simple step-by-step instructions on how to go about setting this up would be helpful.

    screenshot of different instances of social icons

    The shortcodes that I generated within the Avia Layout Builder and pasted into the widget are:

    [av_icon_box position='left' boxed='' icon='ue8f7' font='entypo-fontello' title='Join the MTWC Community of Practice' link='manually,https://plus.google.com/communities/116656021291464268492' linktarget='_blank' linkelement='both' font_color='custom' custom_title='' custom_content='#00833d' color='custom' custom_bg='' custom_font='' custom_border='']
    What is a Community of Practice?
    [/av_icon_box]

    [av_icon_box position='left' boxed='' icon='ue805' font='entypo-fontello' title='Join the MTWC Network' link='manually,https://docs.google.com/forms/d/e/1FAIpQLSfstsf_8FSDTrfmG0t-HTXECHGXkOMxcw5t0sFksqTJslZN8Q/viewform' linktarget='_blank' linkelement='both' font_color='custom' custom_title='' custom_content='#00833d' color='' custom_bg='' custom_font='' custom_border='']
    Use the contact form to join and stay up-to-date with the Transportation Workforce community.
    [/av_icon_box]

    [av_icon_box position='left' boxed='' icon='ue8f2' font='entypo-fontello' title='Follow Us on Twitter' link='manually,https://twitter.com/uwmtwc' linktarget='_blank' linkelement='both' font_color='' custom_title='' custom_content='' color='' custom_bg='' custom_font='' custom_border=''][/av_icon_box]

    [av_icon_box position='left' boxed='' icon='ue8fd' font='entypo-fontello' title='Join the MTWC LinkedIn Group' link='manually,https://www.linkedin.com/groups/8201036' linktarget='_blank' linkelement='both' font_color='' custom_title='' custom_content='' color='' custom_bg='' custom_font='' custom_border=''][/av_icon_box]

    #710418

    Hi,

    1.) I guess that won’t be easily possible, because in your header there are icons in use, while inside your widget there are images in use. However, send us admin access, so we can check and let you know if you we can help with this kind of customization or not.

    2.) Try to create what you want inside your ALB (by using a normal page). Then activate debug mode: http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    To be able to see the shortcodes in question. Use these shortcodes inside your widget, to achieve the social icons you want.

    Best regards,
    Andy

Viewing 30 results - 481 through 510 (of 986 total)