Viewing 30 results - 541 through 570 (of 612 total)
  • Author
    Search Results
  • #272001

    Hi!

    Please turn on Custom CSS field for Avia Layout Builder elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    and give image elements a custom CSS class then add following code to Quick CSS in Enfold theme options under General Styling tab

    .custom-css-class img:hover {
    -webkit-transform: scale(1.05,1.05);
    -moz-transform: scale(1.05,1.05);
    transform: scale(1.05,1.05);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out; 
    transition: all 0.5s ease-in-out;
    }

    Best regards,
    Yigit

    #268580

    Hey!

    Please edit your Fullscreen Slider and add a custom class as shown here – http://i.imgur.com/gyWyH7e.png
    and then add an image element right below it in Avia Layout Builder and give it a unique class as well. Then add following code to Quick CSS in Enfold theme options under General Styling tab

    @media only screen and (max-width: 768px) {
    .unique-class-slider { display: none !important; }
    .unique-class-image { display: block !important; }}
    @media only screen and (min-width: 768px) {
    .unique-class-image { display: none !important; }
    .unique-class-slider { display: block !important; }}

    Cheers!
    Yigit

    #268514

    Hi Josue,

    that is AWESOME!

    The only thing that´s missing is I can´t add custom css to columns because columns don´t have an editor. What I need to achieve is what you see in the screenshot here: https://dl.dropbox.com/s/0v9ui4zywfrlc68/index.html

    You can see that any of the three columns has an individual bg image. I did with this CSS for example:

    #unternehmenkacheln .avia-builder-el-9 {background:url(images/bg-kacheln/kachel-team.jpg) no-repeat!important;background-size:cover!important;}

    In this case .avia-builder-el-9 is the first column element inside a color section with the ID #unternehmenkacheln. That works as long as I don´t add/remove an element because then the class of the column changes. Maybe it´s not hte best idea to ad the bg image to the colum element itself but I have no other idea.

    Any other idea how to create a box like this that has a bg image and can hold a text container element where I can add text and links etc.

    Cheers
    – Michael

    #268433

    Hi Ismael and Devin,

    I apologize in advance… long reply coming. I hope it helps. :-) I got to look at the diffs between your (Ismael’s) Homepage Test and mine:

    1. The first color section has extra parameters in your version: video=” video_ratio=’16:9′.

    2. The three placeholder-tall images on the homepage are aligned center in yours and left in mine.

    3. The middle placeholder-tall image is animated top-to-bottom in yours and bottom-to-top in mine. I intend for just that image to be bottom-to-top.

    4. Your color sections have shadow set to no-shadow. Mine are set to shadow.

    5. More categories are included in the portfolio grid on mine.

    6. Your homepage-widgets color section has an empty av_textblock at the top of it. (I think I saw this in my document’s layout later and removed it.)

    7. The testimonial subtitles are different.

    8. The title is empty on my version’s contact form because there is a custom h2 title above the form.

    9. Small differences in the contact form like the to: email address and the label for Email address.

    There are also these changes in the text between yours and mine, maybe because of edits I made to my document while working on the CSS:

    1. There are no paragraph tags around some of your paragraphs. I’ve added some paragraphs that have their own CSS classes to mine. (I’m using the Disable WPAutoP plugin on my site.)

    2. I’ve added icons above the 5 services buttons. (I have not uploaded the icon font yet, so they are not displaying.)

    3. I switched the View our Portfolio button’s class from secondary-button to tertiary-button.

    4. Under the Homepage – column 1 widget area, I added a textbox with a button for viewing more articles.

    5-6. I added a class on the h3 for Why user experience design instead of web design?. I also split that textblock to put the button into a separate textblock.

    7. I changed the testimonial widget’s header to be an h3 with its own class.

    8. I added a Park/Company field to

    The rest of the differences are just whitespace.

    So, to sum up the shortcode diffs: I don’t see any differences that may affect the color section width other than the video parameters being added to yours.

    Here are the differences in the full HTML for the two pages:

    1. Their html_entry_id_ and avia_entry_id_ numbers are different.

    2. Your page’s images and CSS are using Pagespeed to optimize them; mine are not – maybe because your page is currently my site’s homepage. Similarly, your version minimizes some CSS that the plugins have not externalized.

    3. On yours, the Tipsy Social Icons CSS is within a <style> tag instead of a <link> tag.

    4. The plugins’ scripts are imported in a different order.

    5. Mine has a <link rel=’next’ …> tag.

    6. Your page uses the .home class.

    7. The breadcrumb trails are generated differently. Quite a bit of difference here, so please refer to the files’ HTML.

    8. Mine has this between the breadcrumbs and the div id for homepage-hero:

    <div class=’container_wrap container_wrap_first main_color fullsize’>
    <div class=’container’>
    <main class=’template-page content twelve alpha units’ role=”main” itemprop=”mainContentOfPage”>
    <article class=’post-entry post-entry-type-page post-entry-354′ itemscope=”itemscope” itemtype=”http://schema.org/CreativeWork”&gt;
    <div class=”entry-content-wrapper clearfix”>
    <header class=”entry-content-header”></header><div class=”entry-content” itemprop=”text”>

    9. The color section id’s in mine also contain classes like avia-builder-el-0, el_before_av_section, and avia-builder-el-first. These are also present in other things I built with the Avia editor, such as images.

    10. There are <main> elements associated with each color section ID in yours.

    11. My contact form uses a fieldset and classes like textare_label hidden textare_label_avia_message_2.

    12. Yours has some obfuscated JavaScript toward the end, starting with var addComment.

    I’ll continue looking into this to see if one element on the page seems to be causing the color section width to break. Firebug might show me this.

    Was your version created after I upgraded to Enfold 2.7.1? Would I be able to resolve this issue by creating new documents with the latest version of Enfold?

    Devin – Thanks. Right, I wasn’t going to change the raw shortcodes unless someone here instructed me to do that. I just turned on the debug mode long enough to do the diff above.

    I’ve commented out the code for adding the debug mode. Feel free to turn debug mode back on if you need it for looking at this issue. Also, if you need them, I have saved files containing the shortcodes for both of our versions of Homepage Test. Could I email these to you?

    Thanks,
    David

    #267318

    Topic: footer problem

    in forum Enfold
    e-conomy
    Participant

    Hi,

    I get an error in my footer. http://www.e-conomy.nl
    I think I removed something wrong.

    How can I restore this?

    The footer.php code is now:

    <?php
    global $avia_config;
    $blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;

    //reset wordpress query in case we modified it
    wp_reset_query();

    //get footer display settings
    $the_id = avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
    $footer = get_post_meta($the_id, ‘footer’, true);
    $footer_widget_setting = !empty($footer) ? $footer : avia_get_option(‘display_widgets_socket’);

    //check if we should display a footer
    if(!$blank && $footer_widget_setting != ‘nofooterarea’ )
    {
    if( $footer_widget_setting != ‘nofooterwidgets’ )
    {
    //get columns
    $columns = avia_get_option(‘footer_columns’);
    ?>
    <div class=’container_wrap footer_color’ id=’footer’>

    <div class=’container’>

    <?php
    do_action(‘avia_before_footer_columns’);

    //create the footer columns by iterating

    switch($columns)
    {
    case 1: $class = ”; break;
    case 2: $class = ‘av_one_half’; break;
    case 3: $class = ‘av_one_third’; break;
    case 4: $class = ‘av_one_fourth’; break;
    case 5: $class = ‘av_one_fifth’; break;
    case 6: $class = ‘av_one_sixth’; break;
    }

    $firstCol = “first el_before_{$class}”;

    //display the footer widget that was defined at appearenace->widgets in the wordpress backend
    //if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
    for ($i = 1; $i <= $columns; $i++)
    {
    if($i != 1) $class .= ” el_after_{$class} el_before_{$class}”;
    echo “<div class=’flex_column {$class} {$firstCol}’>”;
    if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Footer – column’.$i) ) : else : avia_dummy_widget($i); endif;
    echo “</div>”;
    $firstCol = “”;
    }

    do_action(‘avia_after_footer_columns’);

    ?>

    </div>

    <!– ####### END FOOTER CONTAINER ####### –>
    </div>

    <?php } //endif nofooterwidgets ?>

    <!– end main –>
    </div>

    <?php

    //copyright
    $copyright = do_shortcode( avia_get_option(‘copyright’, “© “.__(‘Copyright’,’avia_framework’).” – “.get_bloginfo(‘name’).”“) );

    // you can filter and remove the backlink with an add_filter function
    // from your themes (or child themes) functions.php file if you dont want to edit this file
    // you can also just keep that link. I really do appreciate it ;)
    $kriesi_at_backlink = apply_filters(“kriesi_backlink”, ” – Enfold Theme by Kriesi“);

    //you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
    if($copyright && strpos($copyright, ‘[nolink]’) !== false)
    {
    $kriesi_at_backlink = “”;
    $copyright = str_replace(“[nolink]”,””,$copyright);
    }

    if( $footer_widget_setting != ‘nosocket’ )
    {

    ?>

    <footer class=’container_wrap socket_color’ id=’socket’ <?php avia_markup_helper(array(‘context’ => ‘footer’)); ?>>
    <div class=’container’>

    <span class=’copyright’><?php echo $copyright . $kriesi_at_backlink; ?></span>

    <?php
    echo “<nav class=’sub_menu_socket’ “.avia_markup_helper(array(‘context’ => ‘nav’, ‘echo’ => false)).”>”;
    $avia_theme_location = ‘avia3’;
    $avia_menu_class = $avia_theme_location . ‘-menu’;

    $args = array(
    ‘theme_location’=>$avia_theme_location,
    ‘menu_id’ =>$avia_menu_class,
    ‘container_class’ =>$avia_menu_class,
    ‘fallback_cb’ => ”,
    ‘depth’=>1
    );

    wp_nav_menu($args);
    echo “</nav>”;
    ?>

    </div>

    <!– ####### END SOCKET CONTAINER ####### –>
    </footer>

    <?php
    } //end nosocket check

    }
    else
    {
    echo “<!– end main –></div>”;
    } //end blank & nofooterarea check

    //display link to previeous and next portfolio entry
    echo avia_post_nav();

    echo “<!– end wrap_all –></div>”;

    if(isset($avia_config[‘fullscreen_image’]))
    { ?>
    <!–[if lte IE 8]>
    <style type=”text/css”>
    .bg_container {
    -ms-filter:”progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config[‘fullscreen_image’]; ?>’, sizingMethod=’scale’)”;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config[‘fullscreen_image’]; ?>’, sizingMethod=’scale’);
    }
    </style>
    <![endif]–>
    <?php
    echo “<div class=’bg_container’ style=’background-image:url(“.$avia_config[‘fullscreen_image’].”);’></div>”;
    }
    ?>

    <?php

    /* Always have wp_footer() just before the closing </body>
    * tag of your theme, or you will break many plugins, which
    * generally use this hook to reference JavaScript files.
    */

    wp_footer();

    ?>
    ‘ id=’scroll-top-link’ <?php echo av_icon_string( ‘scrolltop’ ); ?>><span class=”avia_hidden_link_text”><?php _e(‘Scroll to top’,’avia_framework’); ?></span>
    <div id=”fb-root”></div>
    </body>
    </html>

    Thanks!

    • This topic was modified 11 years, 8 months ago by e-conomy. Reason: forgot website
    #265376
    D5WDesignGroup
    Participant

    I previous started this topic and it was closed after another participant responded.

    Myself: ” I would like to be able to replace the next and previous arrows in the Advanced Layer Slider with custom .png images. Is this possible? If so where can I swap the images?”

    Moderator:”Hi!

    The two buttons get this classes respectively:

    .ls-nav-prev{ .. }
    .ls-nav-next{ .. }

    Play around with the CSS properties, like background.”

    Myself: “That allows me to style the existing arrows (change the arrow color, arrow background color/images etc.) How can I replace the arrow in the square with a completely different .png?”

    The other Participant: “it’s not a .png It’s text added with

    #top .avia-layerslider .ls-nav-next:before {
    content: “”;
    font-family: ‘entypo-fontello’;
    }

    I realize that the existing navigation items are not .pngs but I would like to be able to use .pngs instead. Even when I change the existing arrow’s background to an image the image still appears within a box.

    #258082

    Hey richardruddle!

    Thank you for using the theme!

    You can add this on Quick CSS or custom.css to adjust the top margin of the icon box:

    #top .iconbox_top {
    margin-top: 50px;
    }

    It is possible to add a unique css selector for any avia elements. You need to enable the custom_css support. Edit functions.php, find this code on line 16:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');
    

    Edit any avia elements like the IMAGE element then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “awesome-image”.

    You can add something like this on your custom.css or Quick CSS:

    .avia_image.awesome-image {
    width: 210px;
    }

    Regards,
    Ismael

    #252591

    In reply to: Footer Styling

    Hey Andrew!

    Add this code to the functions.php file:

    function custom_footer_func(){
    	echo "<img src='_URL_OF_IMAGE_HERE_' class='custom_image'>";
    }
    add_action('avia_after_footer_columns', 'custom_footer_func');
    

    Then this to Quick CSS:

    .custom_image{
    position: absolute;
    right: 0;
    top: -20px;
    }

    Adjust as needed.

    Regards,
    Josue

    #250528

    hey !

    i’m using the code “add_theme_support(‘avia_template_builder_custom_css’);” in function.php in order to set each element individually, so maybe this code has higher priority than the classic custom.css.
    well anyway i give the name “section1 “in css class for the color section and put the code bellow into custom.css :
    “.section1 div.container{border-style: none; width: 100% !important;}”

    though it worked, but chrome cache tricked me…

    • This reply was modified 11 years, 9 months ago by Ben.
    #245587

    Hey!

    Thank you for using the support forum.

    The purpose of the css code above is to keep the images responsive on all screen sizes. If you remove the code, it will blow up the image proportion and ratio. Another thing that you can do to override the css is to add a custom css class on the image element. If you haven’t done so, please add this right after line 16 inside functions.php:

    add_theme_support('avia_template_builder_custom_css');
    

    This is applicable when you’re using the image element on the avia builder or simply adding the img html code on a text block. Add the Image element then add a custom css class, let’s use awesome-image for example. Add this on Quick CSS or custom.css to override the css auto image size adjustment:

    .awesome-image {
    width: 100px !important;
    height: 100px !important;
    }

    This will resize the image to the dimension specified above. Actually, I’m not really sure if this will help you but if you don’t mind giving us a little more information of what you’re trying to do, we’ll be happy to assist. A list of specific image objects that you want to resize will surely help.

    Regards,
    Ismael

    #245555

    Hi!

    Thank you for correcting me. I’m sorry about that, I must have been tired when I posted that.

    Anyway, you can apply a certain background overlay on a color section but first make sure that you added the theme support for custom css class. Edit functions.php, add this code right after line 16:

    add_theme_support('avia_template_builder_custom_css');
    

    This will give you the option to add a custom css class on any avia elements within the builder. So let’s get started, add a color section with the background image that you want then insert a text block inside the section. The overlay image will be added on the text block. Switch to the text/html editor mode then add this:

    <img alt="" src="http://fc09.deviantart.net/fs71/f/2011/074/3/7/dotted_overlay_texture_by_nobren-d3bqt3w.png" />
    

    Scroll a bit below to add a custom css class, we’re going to use section-overlay-background for example. After that save the options then publish the page. Add this on Quick CSS or custom.css to adjust the image overlay to full width and height covering the entire color section background:

    .section-overlay-background {
      position: fixed; 
      top: -50%; 
      left: -50%; 
      width: 200%; 
      height: 200%;
      z-index: 0;
    }
    
    .section-overlay-background img {
      position: absolute; 
      top: 0; 
      left: 0; 
      right: 0; 
      bottom: 0; 
      margin: auto; 
      min-width: 50%;
      min-height: 50%;
    }

    Reference link is here, look for technique number 2: http://css-tricks.com/perfect-full-page-background-image/

    Cheers!
    Ismael

    #245076

    Hey!

    1) Yes, it’s the default mobile menu styling. If you want to customize it I suggest to hire a freelancer who can change the styling of the “desktop” version of the menu based on you requirements.

    2) You can apply a custom class to the section: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then use this class to add a pattern image as background. I.e. use the class “avia-custom-background” and into the quick css fields insert:

    
    #top .avia-custom-background{ background-image: url(https://mywebsite.com/pattern.png); }
    

    instead of http://mywebsite.com/pattern.png insert the url to the pattern/png image. You can also add multiple images http://www.css3.info/preview/multiple-backgrounds/ if necessary.

    Best regards,
    Peter

    #244282

    Hey!

    1) You can try to show the menu with this css code:

    
    .show_mobile_menu #mobile-advanced {
    display: block;
    }
    
    #advanced_menu_toggle, #advanced_menu_hide {
    display: block !important;
    }
    
    #top #wrap_all #avia-menu{ display: none; }
    

    2) I suggest to add a custom class to the textbox which surrounds the title_h1 element (see http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ ) and then use text-align:center; to center align the headline text.

    3) You can use a media query to change the font size for smaller screens. Use it like:

    
    @media only screen and (max-width: 767px){
    .title_h1{ font-size: 10px; }
    }
    

    You can change the font size value and the screen size (767px).

    4) Did you try to set the pattern image as section background image?

    Regards,
    Peter

    #235181
    penumbra
    Participant

    Hi there –
    Trying to set up a very simple blog with images, text and in some cases video, where the images display at full size with no light box or hover. I’ve sent a link to a test blog page in a private reply. The first image on the page is correct but the second has been scaled smaller, it should be 1200px wide native. Using a child theme I have previously attempted to disable the light box and hover customizing functions.php and creating a /js/avia.js as below and per your prior support. But the hover is still on. How do I turn off the hover and make all images display at their native resolution?
    Besides the style.css these are the only two files I have in the child folder. Should there be another file in that folder for this purpose?
    Also, I want the text to flow wider than the default column width. How can I set that? I tried creating a page without a column but it still set the width of the text to about 600px horizontal which is the width to which the images are constrained.
    Thanks.

    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.
    */

    /*
    * Register frontend javascripts:
    */
    if(!is_admin())
    {
    add_action(‘wp_enqueue_scripts’, ‘avia_register_child_frontend_scripts’, 100);
    }

    function avia_register_child_frontend_scripts()
    {
    $child_theme_url = get_stylesheet_directory_uri();

    wp_dequeue_script(‘avia-prettyPhoto’);
    wp_dequeue_style(‘avia-prettyP’);
    wp_dequeue_style(‘avia-custom’);

    //register js
    wp_register_script( ‘avia-default-child’, $child_theme_url.’/js/avia.js’, array(‘jquery’), 1, false );
    }

    ?>

    js/avia.js
    function avia_lightbox_callback(elements,ww,wh){
    (function($){
    elements.each(function()
    {
    var el = $(this);
    if(!el.hasClass('noLightbox'))
    {
    el.addClass('noLightbox');
    }

    if(!el.hasClass('noHover'))
    {
    el.addClass('noHover');
    }
    });

    jQuery('a.lightbox').on('click', function() { return false; });
    })(jQuery);
    }

    • This topic was modified 11 years, 10 months ago by penumbra. Reason: Clarity, additional question, make link private in reply
    #234519

    Hey!

    Thank you for using the theme. I hope you’re doing well today.

    This will get you started. For further modifications, please visit Werkpress.

    You can add this on you custom.css or Quick CSS:

    #header_main .container {
    height: 200px;
    line-height: 200px;
    }
    
    .main_menu {
    top: 50px;
    }
    
    .header_color .main_menu ul:first-child >li > ul, #top .header_color .avia_mega_div > .sub-menu {
    margin-top: -50px;
    }
    
    .avia-menu-fx {
    bottom: 48px;
    }
    
    .header-tagline {
    float: right;
    }
    
    .header-scrolled .main_menu {
    margin-top: -20px;
    }
    
    .header_color.header-scrolled .main_menu ul:first-child >li > ul, #top .header_color.header-scrolled .avia_mega_div > .sub-menu {
    margin-top: -30px;
    }
    
    .header-scrolled .avia-menu-fx {
    bottom: 28px;
    }

    Edit header.php, find this code 154:

    echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', false, 'strong');
    

    Below, add the tagline:

    echo "<div class='header-tagline'>TAGLINE HERE</div>";
    

    Add this on Quick CSS again:

    .header-tagline {
    float: right;
    }

    Regards,
    Ismael

    #233605

    Hey!

    The problem is you’ll get an infinite css animation. You can try this:

    <div class="avia-image-container"><img class="avia_image avia_animated_image avia_animate_when_almost_visible bottom-to-top avia_start_animation" alt="" src="FIRST IMAGE URL HERE" data-hover="http://www.fpcosms.com/fpcnew/wp-content/uploads/2014/03/gather-hover.png"></div>
    

    Cheers!
    Ismael

    #233088

    Hi!

    If you follow the instructions above about adding the custom css support for avia elements. You’ll find a “Custom Css Class” field when editing an Image element or any other avia elements using the Advance Layout Builder. Add a unique css class selector like, “awesome-image” for example. You can then use that selector for that specific image element on Quick CSS:

    .awesome-image {
    width: 100px;
    height: 100px;
    }

    Regards,
    Ismael

    #232089

    Hey!

    The images are set to inherit the size of the container. You need to set the width of a specific image inside a column layout using CSS. You can add a unique selector for each Avia Elements. Edit functions.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;
    

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');
    

    Edit any avia elements like the IMAGE element then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “awesome-image”.

    You can add something like this on your custom.css or Quick CSS:

    .avia_image.awesome-image {
    width: 210px;
    }

    Regards,
    Ismael

    Imburr
    Participant

    I have 3 theme hacks that I have to update every time you update, perhaps you guys can easily point me in the right direction with them? The first hack adds title tag to the logo- for whatever reason the theme does not add it correctly.

    Theme/framework/php/function-set-avia-frontend.php
    Line 426 to:

    
    		if($logo = avia_get_option('logo'))
    		{
    			 $logo = "<img src='{$logo}' alt='{$alt}' title='{$alt}'/>";
    			 $logo = "<$headline_type class='logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    		}
    		else
    		{
    			$logo = get_bloginfo('name');
    			if($use_image) $logo = "<img src='{$use_image}' alt='{$alt}' title='{$alt}'/>";
    			$logo = "<$headline_type class='logo bg-logo'><a href='".$link."'>".$logo."$sub</a></$headline_type>";
    		}
    

    I manually added in title='{$alt}’ in both statements to get the title to work.

    The second hack is to add text to the cart button, and to hide it with a CSS indent.

    Edit config.php in enfold\config-woocommerce\config.php
    Line 758

    
    $output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."><span class='hide'>Cart</span></span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";
    

    The hide class has my indent/hide code on it.

    The last hack is to add customability for visibility to theme menu’s, which I found in your forum here.

    Add code to enfold/functions.php
    add_theme_support(‘avia_conditionals_for_mega_menu’);
    On line 17
    Under
    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    Reference: From <https://kriesi.at/support/topic/enfold-conditional-menu/&gt;

    Is there any way to bring this into the child theme functions.php so I can stop hacking the theme?

    Thank you guys so much for the help!

    #227097

    Where in the code should I do?

    		<?php
    		global $avia_config;
    		$blank = isset($avia_config['template']) ? $avia_config['template'] : "";
    
    		//reset wordpress query in case we modified it
    		wp_reset_query();
    
    		//get footer display settings
    		$the_id 				= avia_get_the_id(); //use avia get the id instead of default get id. prevents notice on 404 pages
    		$footer 				= get_post_meta($the_id, 'footer', true);
    		$footer_widget_setting 	= !empty($footer) ? $footer : avia_get_option('display_widgets_socket');
    
    		//check if we should display a footer
    		if(!$blank && $footer_widget_setting != 'nofooterarea' )
    		{
    			if( $footer_widget_setting != 'nofooterwidgets' )
    			{
    				//get columns
    				$columns = avia_get_option('footer_columns');
    		?>
    				<div class='container_wrap footer_color' id='footer'>
    
    					<div class='container'>
    
    						<?php
    						do_action('avia_before_footer_columns');
    
    						//create the footer columns by iterating
    
    						$firstCol = 'first';
    				        switch($columns)
    				        {
    				        	case 1: $class = ''; break;
    				        	case 2: $class = 'av_one_half'; break;
    				        	case 3: $class = 'av_one_third'; break;
    				        	case 4: $class = 'av_one_fourth'; break;
    				        	case 5: $class = 'av_one_fifth'; break;
    				        }
    
    						//display the footer widget that was defined at appearenace->widgets in the wordpress backend
    						//if no widget is defined display a dummy widget, located at the bottom of includes/register-widget-area.php
    						for ($i = 1; $i <= $columns; $i++)
    						{
    							echo "<div class='flex_column $class $firstCol'>";
    							if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - column'.$i) ) : else : avia_dummy_widget($i); endif;
    							echo "</div>";
    							$firstCol = "";
    						}
    
    						do_action('avia_after_footer_columns');
    
    						?>
    
    					</div>
    
    				<!-- ####### END FOOTER CONTAINER ####### -->
    				</div>
    
    	<?php   } //endif nofooterwidgets ?>
    
    			<!-- end main -->
    			</div>
    
    			<?php
    
    			//copyright
    			$copyright = avia_get_option('copyright', "&copy; ".__('Copyright','avia_framework')."  - <a href='".home_url('/')."'>".get_bloginfo('name')."</a>");
    
    			
    
    			//you can also remove the kriesi.at backlink by adding [nolink] to your custom copyright field in the admin area
    			if($copyright && strpos($copyright, '[nolink]') !== false)
    			{
    				$kriesi_at_backlink = "";
    				$copyright = str_replace("[nolink]","",$copyright);
    			}
    
    			if( $footer_widget_setting != 'nosocket' )
    			{
    
    			?>
    
    				<footer class='container_wrap socket_color' id='socket' <?php avia_markup_helper(array('context' => 'footer')); ?>>
                        <div class='container'>
    
                            <span class='copyright'><?php echo $copyright . $kriesi_at_backlink; ?></span>
    
                            <?php
                                echo "<nav class='sub_menu_socket' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                    $avia_theme_location = 'avia3';
                                    $avia_menu_class = $avia_theme_location . '-menu';
    
                                    $args = array(
                                        'theme_location'=>$avia_theme_location,
                                        'menu_id' =>$avia_menu_class,
                                        'container_class' =>$avia_menu_class,
                                        'fallback_cb' => '',
                                        'depth'=>1
                                    );
    
                                    wp_nav_menu($args);
                                echo "</nav>";
                            ?>
    
                        </div>
    
    	            <!-- ####### END SOCKET CONTAINER ####### -->
    				</footer>
    
    			<?php
    			} //end nosocket check
    
    		}
    		else
    		{
    			echo "<!-- end main --></div>";
    		} //end blank & nofooterarea check
    
    		//display link to previeous and next portfolio entry
    		echo avia_post_nav();
    
    		echo "<!-- end wrap_all --></div>";
    
    		if(isset($avia_config['fullscreen_image']))
    		{ ?>
    			<!--[if lte IE 8]>
    			<style type="text/css">
    			.bg_container {
    			-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale')";
    			filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $avia_config['fullscreen_image']; ?>', sizingMethod='scale');
    			}
    			</style>
    			<![endif]-->
    		<?php
    			echo "<div class='bg_container' style='background-image:url(".$avia_config['fullscreen_image'].");'></div>";
    		}
    	?>
    
    <?php
    
    	/* Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    
    ?>
    <a href='#top' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>></a>
    <div id="fb-root"></div>
    </body>
    </html>

    And what should I write? <iframe ???></iframe>?

    #223737

    Hi Yigit,

    Very sorry about the duplicate topic, I was worried that I threw too much into this one so thought I’d at least find out the most important answer I needed quicker on it’s own. Won’t do again.

    I dug through the forum a bit as I needed to fix everything in short order and I at least found working solutions, but not sure if they were the best.

    For 2) I used the css .image-overlay { display: none!important; }

    For 1) and 4) I just created a custom class and used the following code – is this the best way to accomplish this or is there a better way to align everything middle vertically and move left/right as needed?

    .avia_image.asseen1 {
    top: -8px;
    right: -160px;
    }
    
    .avia_image.asseen2 {
    top: -38px;
    }
    
    .avia_image.asseen3 {
    top: -21px;
    left: -160px;
    }

    Thank you,
    Jonathan

    #221784

    Hey eric!

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

    .main_color, .main_color .site-background, .main_color .first-quote, .main_color .related_image_wrap, .main_color .gravatar img .main_color .hr_content, .main_color .news-thumb, .main_color .post-format-icon, .main_color .ajax_controlls a, .main_color .tweet-text.avatar_no, .main_color .big-preview, .main_color .toggler, .main_color .toggler.activeTitle:hover, .main_color #js_sort_items, .main_color.inner-entry, .main_color .grid-entry-title, .main_color .related-format-icon, .grid-entry .main_color .avia-arrow, .main_color .avia-gallery-big, .main_color .avia-gallery-big, .main_color .avia-gallery img, .main_color .grid-content { background-color: rgba(0,0,0,0.5); }

    There are many class to target. Please post the link to your website and point out the section so we can provide you more accurate custom CSS code

    Cheers!
    Yigit

    #221590

    Hi Yeas!

    You can edit config-templatebuilder > avia-shortcodes > postslider.php, look for this code to modify the look of the blog grid layout:

     $markup = avia_markup_helper(array('context' => 'entry','echo'=>false));
    					$output .= "<article class='slide-entry flex_column {$style} {$post_class} {$grid} {$extraClass} {$thumb_class}' $markup>";
    					$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
    					$output .= "<div class='slide-content'>";
    
                        $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false));
                        $output .= '<header class="entry-content-header">';
                        $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
                        $output .= '</header>';
    
                        if($show_meta && !empty($excerpt))
    					{
    						$output .= "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false));
    						$output .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$output .= "</div>";
    					}
                        $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false));
    					$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
    
                        $output .= "</div>";
                        $output .= '<footer class="entry-footer"></footer>';
    					$output .= "</article>";

    Or you can add something like this on Quick CSS or custom.css to align the grid image to the left:

    .slide-image {
    width: 30%;
    margin-right: 10px;
    float: left;
    }

    Regards,
    Ismael

    #221545

    Hi!

    1-2.) Please add this on Quick CSS or custom.css:

    .related_image_wrap {
    max-height: 70px;
    }
    
    .related_image_wrap img {
    height: 100%;
    }
    
    .related_entries_container .no_margin.av_one_eighth {
    width: 15.5%;
    }

    2.) Edit includes > related-posts.php, find this code:

    $output .= "<h5 class='related_title'>".__('You might also like', 'avia_framework')."</h5>";
    

    Cheers!
    Ismael

    #220382
    pako69
    Participant

    Hello
    I always use that: add_theme_support(‘avia_template_builder_custom_css’); fo styling
    It”s great but i need to add class to colunms layout like:
    div class=”flex_column av_one_half first avia-builder-el-6 el_after_av_image MYCLASS ”
    thanks

    #219068

    Thanks for the response Ismael, but it’s still not working >_<. Here is the entire code for the header.php file, with the code you mentioned added:

    <?php
    	global $avia_config;
    
    	$style 		= $avia_config['box_class'];
    	$responsive	= avia_get_option('responsive_layout','responsive');
    	$blank 		= isset($avia_config['template']) ? $avia_config['template'] : "";
    	$headerS	= !$blank ? avia_header_setting() : "";
    	$headerMenu = $responsive ? avia_get_option('header_menu','mobile_drop_down') : "";
    
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?> class="<?php echo " html_$style ".$responsive." ".$headerS;?> ">
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="format-detection" content="telephone=yes">
    <title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title>
    <!-- page title, displayed in your browser bar -->
    
    <?php
    
    	/*
    	 * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
    	 * located in framework/php/function-set-avia-frontend.php
    	 */
    	 if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
    
    	 /*
    	 * outputs a favicon if defined
    	 */
    	 if (function_exists('avia_favicon'))    { echo avia_favicon(avia_get_option('favicon')); }
    
    ?>
    
    <!-- add feeds, pingback and stuff-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <!-- mobile setting -->
    <?php
    
    if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
    
    ?>
    
    <?php
    
    	/* Always have wp_head() just before the closing </head>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to add elements to <head> such
    	 * as styles, scripts, and meta tags.
    	 */
    
    	wp_head();
    ?>
    
    </head>
    
    <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank); avia_markup_helper(array('context' => 'body')); ?>>
    
    	<div id='wrap_all'>
    
    		<?php if(!$blank){ ?>
    
            <header id='header' class=' header_color <?php avia_is_dark_bg('header_color'); echo " ".$headerMenu; ?>' <?php avia_markup_helper(array('context' => 'header','post_type'=>'forum'));?>>
    
                <?php
                
                if($responsive && $headerMenu == 'mobile_slide_out')
                {
                	echo '<a id="advanced_menu_toggle" href="#" '.av_icon_string('mobile_menu').'></a>';
    	    		echo '<a id="advanced_menu_hide" href="#" 	'.av_icon_string('close').'></a>';
                }
                
    
                $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
    
                //subheader, only display when the user chooses a social header
                if(strpos($headerS,'social_header') !== false)
                {
                ?>
                <div id='header_meta' class='container_wrap container_wrap_meta'>
    
                      <div class='container'>
                      <?php
                            /*
                            *	display the themes social media icons, defined in the wordpress backend
                            *   the avia_social_media_icons function is located in includes/helper-social-media-php
                            */
    
                            if(strpos($headerS,'bottom_nav_header') === false) avia_social_media_icons($social_args);
    
                            //display the small submenu
                            echo "<nav class='sub_menu' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                $avia_theme_location = 'avia2';
                                $avia_menu_class = $avia_theme_location . '-menu';
                                $args = array(
                                    'theme_location'=>$avia_theme_location,
                                    'menu_id' =>$avia_menu_class,
                                    'container_class' =>$avia_menu_class,
                                    'fallback_cb' => '',
                                    'container'=>'',
                                    'echo' =>false
                                );
    
                                $nav  = wp_nav_menu($args);
                                echo $nav;
    
                                $phone = avia_get_option('phone');
                                $phone_class = !empty($nav) ? "with_nav" : "";
                                if($phone) echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>";
    
                                /* <div class="phone2">503-436-5576</div>
                                *  Hook that can be used for plugins and theme extensions (currently:  the woocommerce shopping cart)
                                */
                                do_action('avia_meta_header');
                            echo '</nav>';
                        ?>
                      </div>
                </div>
    
                <?php } ?>
    
                <div  id='header_main' class='container_wrap container_wrap_logo'>
                      <div class='phone2'><a href="tel:15034365576">Contact Us:(503)436-5576</div></a>
                      </a></strong><img class='cards' src='http://garagedoorsrepairwestlinn.com/wp-content/uploads/2014/01/crdit-card-logo.jpg' />   
                        <?php
                        /*
                        * Hook that can be used for plugins and theme extensions (currently:  the woocommerce shopping cart)
                        */
                        do_action('ava_main_header');
    
                        ?>
    
                        <div class='container'>
    
                            <?php
                            /*
                            *	display the theme logo by checking if the default logo was overwritten in the backend.
                            *   the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
                            */
                            echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', false, 'strong');
    
                                if(strpos($headerS,'social_header') !== false && strpos($headerS,'bottom_nav_header') !== false) avia_social_media_icons($social_args);
    
                            /*
                            *	display the main navigation menu
                            *   modify the output in your wordpress admin backend at appearance->menus
                            */
                                $extraOpen = $extraClose = "";
                                if(strpos($headerS,'bottom_nav_header') !== false){ $extraClose = "</div></div><div id='header_main_alternate' class='container_wrap'><div class='container'>";  }
    
                                echo $extraClose;
    
                                echo "<nav class='main_menu' data-selectname='".__('Select a page','avia_framework')."' ".avia_markup_helper(array('context' => 'nav', 'echo' => false)).">";
                                    $avia_theme_location = 'avia';
                                    $avia_menu_class = $avia_theme_location . '-menu';
                                    $args = array(
                                        'theme_location'	=> $avia_theme_location,
                                        'menu_id' 			=> $avia_menu_class,
                                        'container_class'	=> $avia_menu_class,
                                        'fallback_cb' 		=> 'avia_fallback_menu',
                                        'walker' 			=> new avia_responsive_mega_menu()
                                    );
    
                                    wp_nav_menu($args);
                                echo '</nav>';
    
                                /*
                                * Hook that can be used for plugins and theme extensions
                                */
                                do_action('ava_after_main_menu');
                            ?>
                        <!-- end container-->
                        </div>
    
                <!-- end container_wrap-->
                </div>
    
                <div class='header_bg'></div>
    
            <!-- end header -->
            </header>
    
    	<?php } //end blank check ?>
    	<div id='main'>
    
    

    and for custom css:

    #top .social_bookmarks { display: none; }
    #header_meta { display: none; }
    
    #header_main .container, .main_menu ul:first-child > li > a {
    height: 131px !important;
    line-height: 131px !important;
    }
    
    #header_main_alternate .container, .main_menu ul:first-child > li > a {
    color: green !important;
    height: 40px !important;
    line-height: 40px !important;
    }
    
    #top .main_menu .menu>li:last-child>a {
    padding-right: 10px;
    }
    
    .phone2 {
    color: black;
    font-size: 25px;
    padding: 4px;
    position: absolute;
    right: 80px;
    top: 99px;
    }
    
    .cards {
    position: absolute;
    right: 80px;
    top: 50px;
    }

    I feel like I’ve done everything exactly as suggested.. and it’s still not working.

    #214333
    Pixelbits
    Participant

    I was looking for a different onhover effect for the Enfold portfolio. With the help of some Googling I changed the arrow to a slideover-excerpt-text effect.

    To change this you have to know how to code – preferably in a child theme that you can download here:http://bit.ly/enfold-child

    Example of onhover effect:
    http://i40.tinypic.com/ndvqpz.jpgimage effect example

    What did i change:
    PORTFOLIO.PHP (Version: 2.4.5)

    New code:
    somewhere from line 395 (fullwidth portfolio) I changed some settings and added some classes. This is not very clean code but it can help you achieve this very easily.

    else
                    {
                        $extraClass .= ' default_av_fullwidth ';
    
                        $output .= "<div data-ajax-id='{$the_id}' class=' rozepitem grid-entry flex_column isotope-item all_sort {$style_class} {$post_class} {$sort_class} {$grid} {$extraClass}'>";
    	                $output .= !empty($excerpt) ? "<a href='{$title_link}' title='".esc_attr(strip_tags($title))."'><div class='rozeptxt grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".$excerpt."</div></a>" : '';
        
                        $output .= "<article class='main_color inner-entry' ".avia_markup_helper(array('context' => 'entry','echo'=>false)).">";
    					
                        $output .= apply_filters('avf_portfolio_extra', "", $entry);
                        $output .= "<".$link_markup[0]." data-rel='grid-".avia_post_grid::$grid."' class='grid-image avia-hover-fx'>".$custom_overlay.get_the_post_thumbnail( $the_id, $image_size )."</".$link_markup[1].">";
                        $output .= !empty($title) || !empty($excerpt) ? "<div style='z-index:100;box-shadow: 0px -5px 20px #888888;' class='grid-content'><div class='avia-arrow'></div>" : '';
    
                        if(!empty($title))
                        {
                            $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false));
                            $output .= '<header style="z-index:100;" class="entry-content-header">';
                            $output .= "<h3 class='grid-entry-title entry-title' $markup><a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";
                            $output .= '</header>';
                        }
                        $output .= !empty($title) || !empty($excerpt) ? "</div>" : '';
                        $output .= '<footer class="entry-footer"></footer>';
                        $output .= "</article>";
                        $output .= "</div>";
                    }
    
    				$loop_counter ++;
    				$post_loop_count ++;
    				$extraClass = "";
    
    				if($loop_counter > $columns)
    				{
    					$loop_counter = 1;
    					$extraClass = 'first';
    				}
    			}

    Then i added a jQuery part in a JS file (e.g. shortcodes.js):

    $('.rozeptxt').animate({
          opacity:'0',
          top:'300px',
        });
    
    $('.rozepitem').hover(  
      // Over
      function(){     
    	$(this).find('.rozeptxt').animate({
          opacity:'0.9',
          top:'0px',
        });
    
      }
      ,  
      // Out
      function(){
    	$(this).find('.rozeptxt').animate({
          opacity:'0',
          top:'300px',
        });
    
      }
    );
    

    In the custom CSS-field I added this:

    
    .image-overlay { display: none!important; } 
    
    .entry-title {font-weight:bold;font-size:13pt;}
    
    .rozeptxt{color:#7c6853;font-size:13pt;position: absolute;top:0px;left:0px;
        background: rgba(255,255,255,0.9);width: 100%;height: 100%;z-index:50;padding:20px;}
    
    .rozepitem{display: block;float: left;
        position: relative;overflow:hidden;}
    

    I know the code can be a lot cleaner, but i saw other people wanting this – so maybe this helps them create something awesome.

    • This topic was modified 11 years, 12 months ago by Pixelbits. Reason: example image effect added

    Hi bmneimark!

    You can add a unique selector for each Avia Elements. Edit functions.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');

    Create a page then insert three 1/3 columns. On each columns insert the Images element under Media Element panel. Configure each Images element then add a custom css class. For example, let’s use the “one_third_image”. Add this on custom.css or Quick CSS to specify the height of the images with the “one_third_image” selector:

    .avia_image.one_third_image {
    height: 240px;
    }

    Best regards,
    Ismael

    #208805
    jtree5757
    Participant

    Is there a way to have other elements animate in when a user scrolls to wherever that element is?
    like the icon lists and images can.

    I have a special header element and I wanted that to animate in so i tried to assign a custom css class to the element and apply some css that an animated icon had.

    Here is what I got, but it doesn’t work:

    #top .jrm-easyas {
    	animation: 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s normal none 1 avia_appear;
    	opacity: 1;
    	transform: scale(1);
    }

    If I apply other properties such as border and background color, they do appear, so I know the class is correct ad active.

    Any ideas on how to get that animation working?
    I would love to be able to animate whatever I wanted in :)

    thanks!!!!

    #208156

    Topic: Custom CSS Image Left

    in forum Enfold
    conbdesign
    Participant

    I read your documentation but need more specific instructions to help me with adding a margin to all images with a class of alignleft.
    I would like to insure that the text will wrap with a 10px margin on the right and bottom. I would like to set it as a default so that other users do not have to fiddle with it when adding a post.

    Please explain exactly where I can make these changes and what I need to add. I tried to add Custom CSS to the custom.css file but don’t think this is correct. Is this what I need to add to it?
    /* General Custom CSS */
    add_theme_support(‘avia_template_builder_custom_css’);
    clb-alignleft
    #top .clb-alignleft {
    margin-right: 10px;
    margin-bottom:10px;
    }
    If this is correct, then will the styling be automatically applied when an image is uploaded and set as “left” when adding to a page or post?
    Thank you!

    • This topic was modified 12 years ago by conbdesign.
Viewing 30 results - 541 through 570 (of 612 total)