Viewing 30 results - 11,581 through 11,610 (of 18,743 total)
  • Author
    Search Results
  • I wasn’t able to wait for a response so I found an alternate solution. I will no longer use the Enfold dropcaps shortcode because:

    – It does not degrade gracefully (both code and first letter of the paragraph are stripped when displayed in shortcode excerpts, search and archive pages).
    – It’s extra work to insert this in every post.

    Instead I’m moving to a CSS snipet to create an automatic dropcap on every post.

    – This degrades gracefully in all excerpts (only the HTML/CSS formatting is stripped, not the letter).
    – Less work/automatic.

    The only Cons I can see are:
    – If have a post or two where I need the first letter to NOT be auto-dropcapped.
    – I now have to go and remove all dropcap shortcodes from my existing posts. :/

    I thought I’d share this for anyone else who runs into this issue. Consider not using the dropcaps shortcode if you want the first letter of your post or page to not be stripped in excerpts (which are often used on Archive and Search Results pages); or if you use Enfold shortcodes that display excerpts. You might instead consider using a CSS trick to apply dropcaps site-wide and avoid this issue (adjusting the CSS below to target elements appropriately for your desired result):

    /*-- auto-dropcap the first paragraph element of entry-content in standard editor --*/
    .entry-content > p:nth-of-type(1):first-letter {
    display: block;
    float: left;
    font-size: 38px;
    line-height: 32px;
    margin: 4px 8px 0 0;
    }

    Example

    Hi Yigit, thanks for the quick reply.

    1. after adding the code below, all the font will change to black color and font size will same as the special heading size setting which is not same as my advanced styling setting color and font size. May i know how to solve or i have to edit the font color and size in every single special heading.

    @media only screen and (max-width: 480px){
    h1.av-special-heading-tag {
    font-size: 23px!important;
    }

    2- Which background image are we talking about here? Could you please elaborate :)
    – for the ‘ BENEFIT ‘ special heading background which i have selected ‘ center center ‘ for the background image position is nice but when it comes to mobile screen the fruits background cover the font. May i know how to assign the background image position to ’ center left ’ for mobile screen and remain ’ center center ’ for the desktop screen.

    3..Please turn on custom CSS field for ALB elements
    – i have added ” add_theme_support(‘avia_template_builder_custom_css’); ” into public_html/wp-includes/functions.php and it came out with this error as below. May i know where should i place the code.

    “Fatal error: Call to undefined function add_theme_support() in /home/beyounghealth/public_html/wp-includes/functions.php on line 12”

    Thanks Team.

    #607965
    bobfurgo
    Participant

    Hello. I am currently using media queries to adjust the font sizes and other elements for different devices. I attempted to create media queries for the headers but for some reason they do not work, even when I set the font size in the “advanced styling” header options to default. Is there a way to make it so that the media query css is recognized and put in higher priority over whatever the default setting is?

    Thank you!

    #607947
    mleite1
    Participant

    I can use different text block with different types of fonts? I do not want to use only one source for the text block.

    RESUME
    I want to use text block with different types of formatting: different types of fonts, font size, color for each text block. How to individualize?
    //////
    LINK
    http://www.liliansouza.com/assets/2016

    LINK IMAGE
    http://www.screencast.com/t/jCJBmmpBXUh

    • This topic was modified 10 years ago by mleite1.

    Hi tommytai!

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

    h1.av-special-heading-tag {
        font-size: 20px!important;
    }

    2- Which background image are we talking about here? Could you please elaborate :)
    3- Please turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and edit your element and give it a custom CSS class (“your-custom-class” for example as i used in code below) and then add following code to Quick CSS in Enfold theme options under General Styling

    .your-custom-class .av_toggle_section:nth-child(2) .toggler {
        color: yellow;
    }
    .your-custom-class .av_toggle_section:nth-child(1) .toggler {
        color: blue;
    }

    Best regards,
    Yigit

    #607903

    Hi!

    2- Please add following code to Quick CSS

    ul.nested_nav a {
        font-size: 14px;
        color: red;
    }

    4- Please go to Enfold theme options > Header and change header height to small and then go to “Extra elements” tab and choose not to display social icons.

    Regards,
    Yigit

    tommytai
    Participant

    Hi Team, Good day

    1. May i know how to reduce the special heading text size in mobile?

    2. How to assign the background image position to ’ center left ’ in mobile mode and remain ’ center center ’ for the desktop mode.

    3. How to change the accordion question font color like 1st question is in red color and 2nd question in purple. is it possible?

    Thanks Team!! =)

    #607730

    In reply to: tabs

    Hey!

    1- I fixed the error. I believe that happened due to RTL. I changed direction to LTR and saved it and that helped
    2- Please add following code to Quick CSS

    .my-custom-tabs .tab_icon {
        font-size: 22px!important;
    }

    3- Unfortunately that would not be easily possible :/
    Cheers!
    Yigit

    #607278

    Hi Derek!

    Thanks for getting in touch with us!

    In the Enfold theme options please go to Advanced Styling and select the different elements you wish to style. For example choose “H3” and you can edit the font type, color, and size for all h3 elements.

    Let me know if you need further assistance.

    Cheers!
    Jordan

    #607259
    teachingwithamy
    Participant

    Hello, I am having 3 issues with formatting in the Enfold theme.

    I have my page set up to 2000px wide no side bar, yet the graphics I created to this exact 2000px width are not stretching to the edges of the page. I have checked the setting on my computer screens.

    Also, my blog post text seems to be squeezed to an invisible middle column – even though I have NO sidebars and pages set to 2000px wide.

    Finally, I am using the code you gave me to remove the date from my blog post, but the date is still visible. This is the code I am using:
    .blog .blog-meta a {
    display: none !important;
    }

    Would you kindly please advise?

    #607214
    kazse
    Participant

    Hi there,

    I would like to have the language switcher on the right side before the social icons, just like on the page below (GTmentor).
    Currently i have the following in the quick css:

    .language_flag img {
    display: none !important;
    }
    .language_code {
    display: block !important; font-size: 12px; color: #b0ada6;
    text-transform: uppercase;
    }
    #top ul.avia_wpml_language_switch li {
    margin: 0;
    padding: 0 10px;
    padding-top: 3px;
    border: none;
    border-left: 1px solid;
    border-left-color: #e1e1e1
    height: 13px;
    }

    I dont know if it is good, and it should be on the right side.

    Thanks!

    #607157
    derek62
    Participant

    How can I change the fonts, font sizes and font line spacing in Enfold?

    Thanks.

    Derek

    #607104
    kbarranco
    Participant

    I am trying to change the subhead on the special heading above

    /*=== I’m trying to figure this one out ===*/
    .av-special-heading .av-special-subheading .av-subheading-above .av-custom-color{
    text-transform: uppercase;
    font-size: 22px;
    }

    #606507

    Topic: Space above Table

    in forum Enfold
    webdesign
    Participant

    Hi,
    I have a table and the spacing above the table is not consistent with spacing between other elements (such as between text block elements). I tried to force a margin of “0”, but that didn’t work. I am currently using this custom css in my child theme to affect the table elements:
    table caption {
    padding: 0 0 5px 0;
    width: auto;
    font-style:normal;
    text-align: left;
    font-size: 21px;
    font-weight: bold;
    color: #2c353d!important;
    }

    div .avia-table { margin-top: 0px; }

    #606309

    Use the following:

    #top .inner_sort_button span {
        color: red;
        font-size: 22px;
        letter-spacing: 2px;
    }

    Modify as needed.

    #606305

    change font, change font size, change font color, letter spacing, etc….

    #606267

    In reply to: Social Icon Size

    No Sass thing there, just plain CSS, the code to change the size could be simplified to (as it is already set in css/base.css):

    .social_bookmarks [data-av_icon]:before {
        font-size: 31px;
    }

    Brackets in the CSS selector mean attribute, so we’re catching all elements with an attribute of data-av_icon="value" and the content property is fetching that value and using that as “content”, you can use content on pseudo-selectors :after and :before (it’s like creating HTML with CSS).

    #606220

    In reply to: Social Icon Size

    Hey!

    Try changing your code:

    .social_bookmarks [data-av_icon]:before {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: normal;
        content: attr(data-av_icon);
        speak: none;
        font-size: 31px;
    }

    Regards,
    Josue

    #606193

    Topic: Social Icon Size

    in forum Enfold
    Michae1
    Participant

    Hi guys,

    I’m trying to decrease the size of the Social Icons in the footer WITHOUT shrinking the mobile menu icons. I changed the font-size in the following class but it affects ALL of the sizes. How can I target JUST the Social Icon size?

    
    [data-av_icon]:before {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-weight: normal;
        content: attr(data-av_icon);
        speak: none;
        font-size: 31px;
    }
    
    #606054

    In reply to: not responsive on ipad

    Hey!

    I edited your text and gave it a custom class and then changed the code to following one

    @media only screen and (max-width: 1024px) and (min-width: 767px) {
    .ipad-span { font-size: 40px !important; }
    #ipad .avia_textblock {
        max-width: 700px;
    }}

    Please review your website now

    Regards,
    Yigit

    #606029

    In reply to: Font of Enfold Demo

    Thank you very much. And i like that the font in layer slider do not resize with browser (fix font size for all resolutions).

    Thanks again, Kai

    #605754

    Hey!

    Remove this one:

    [data-av_icon]:before {
        font-size: 25px!important;
    }

    And use the following

    #socket [data-av_icon]:before {
        font-size: 60px !important;
    }

    Modify as needed.

    Regards,
    Josue

    I tried this solution to change the Full Width Sub Menu background and text color along with font size which all worked, but hover does not. It changed the background color of the entire drop down container instead of each item independently.

    My current CSS:

    
    #top .sub-menu { font-size: 17px;
        background: #1684b0 !important;
    }
    .sub-menu, .sub-menu * { background: transparent !important; }
    
    #top .sub-menu:hover {
        background: #2e2e2e !important;

    Thanks
    Jon

    #605614

    Hey!

    No problem. This is the html markup:

    <span class="av_font_icon avia_animate_when_visible av-icon-style-  av-no-color avia-icon-pos-left  avia_start_animation avia_start_delayed_animation" style=""><span class="av-icon-char" style="font-size:40px;line-height:40px;" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span></span>
    

    Cheers!
    Ismael

    #605595
    smittypages
    Participant

    I was following this post:
    https://kriesi.at/support/topic/advanced-layerslider-5-6-2-lost-styles-in-enfold-3-4-7-and-cannot-save-styles/

    I, too, was experiencing the same issue:
    – Edit a slider (adjust font sizes, colors, background, padding, etc., using the style control fields (not custom CSS))
    – Click save and exit that slider
    – Return to that slider and the styling specifications I set up are not saved

    I just, today, updated Enfold to most current and it appears the Layer Slider is also most-current: (5.6.3).

    Today I am still experiencing the missing styles after saving. I did notice, however, that this seems to happen on some sliders and not on others. When I have a specific TypeKit font specified “futura-pt” (with quotation marks) in the Font Family field and then save, then all of the styling and transition specifications for that layer get lost upon save and revert to default settings. If I specify a Google Font or other simple web-safe font, then the styles for the layer remain intact after saving.

    So, I guess my question is: is there a way to use TypeKit fonts in the LayerSlider that also allows the styling to be saved? Or – do I need to call the font-family in a different way?

    #605576

    Ismael,
    One more time I need you assistance.
    Can you please provide the HTML mark up for the following;
    Hereby the sort coding;
    [av_font_icon icon='ue8cf' font='entypo-fontello' style='' caption='' link='' linktarget='' size='10px' position='left' color='' custom_class=''][/av_font_icon]

    I have created a tempory page.
    Hereby the permalink;
    Front end
    http://world2cycle.com/test-page/

    Back end
    http://world2cycle.com/wp-admin/post.php?post=627&action=edit

    #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

    #605482

    In reply to: not responsive on ipad

    class name: ipad
    code:
    @media only screen and (max-width: 1024px) and (min-width: 767px) {
    .ipad h1 span { font-size: 40px !important; }}

    thanks for your help. Never had this problem before.

    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

    #605466
    k_grinder
    Participant

    Hello,

    We are needing to place a font re-sizer in the very top header next to the social and phone number area. I know this needs to be done in the php file itself as we are adding this a php line of code. However, I can’t find the file. I found the header.php for the theme, but I can’t find the top header file.

    We have to place the font re-sizer because the client really wants it on the top of the page and not only in a side panel. We realize this may break on an upgrade, but we can add the one line of code back in when that time comes.

    Thanks,
    Kevin

Viewing 30 results - 11,581 through 11,610 (of 18,743 total)