Viewing 27 results - 16,861 through 16,887 (of 16,887 total)
  • Author
    Search Results
  • #116651

    In reply to: Images look blurred !!

    Hello,

    I do a test for 1 image and it looks better

    If i replace in function.php

    $avia_config = array(‘width’=>710, ‘height’=>270);

    by

    $avia_config = array(‘width’=>694, ‘height’=>562);

    and regenerate images, you think this will fix the problem ?

    #117389

    In reply to: Blog option

    Thx Ismael, but your code doesn’t work

    In fact, I would to remove the page title, for insert myself in the body of the page.

    Instead, I would like to insert this :

    567432Capturedcran20130508112040.png

    Thx very much for your support

    #116887

    This is the code I put in header.php

    <link href="http://cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:400px;}
    /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
    We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
    </style>

    #22952
    RayhawkCorp
    Participant

    please help

    I just bought it yesterday from themeforest.com and got a big problem for installation. When i try to use the wordpress to install it, it will tell me: do you really want to do this? try again. I manually uploaded the enfold folder to the wp-content/theme folder, while the other themes i uploaded are working correctly, but when i try to preview the site under enfold theme, it shows the errors:

    Warning: session_start() [function.session-start]: open(/home/167483/data/tmp/sess_a464ac234abfa870cd58564900caee2b, O_RDWR) failed: No such file or directory (2) in /nfs/c03/h03/mnt/167483/domains/samsolakyan.com/html/wp-content/themes/enfold/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /nfs/c03/h03/mnt/167483/domains/samsolakyan.com/html/wp-content/themes/enfold/enfold/config-templatebuilder/avia-shortcodes/portfolio.php:27) in /nfs/c03/h03/mnt/167483/domains/samsolakyan.com/html/wp-content/themes/enfold/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /nfs/c03/h03/mnt/167483/domains/samsolakyan.com/html/wp-content/themes/enfold/enfold/config-templatebuilder/avia-shortcodes/portfolio.php:27) in /nfs/c03/h03/mnt/167483/domains/samsolakyan.com/html/wp-content/themes/enfold/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27

    #117387

    In reply to: Blog option

    I found the answer. In the ThemeForest site, you say that is the update 1.4.

    In fact, in the file hedear.php is marked 1.3.1.

    I had simply replaced by 1.4.

    I found a problem that affects SEO. Look at the screen.

    626960Capturedcran20130507113728.png

    Here “Features” is an H1, not good in terms of SEO. How to remove?

    I wish that instead, there is the watermark (which is right)

    How could I do?

    Thx

    R3vOx

    #117498

    In reply to: Duplicate blog page

    Hi Bethany,

    A page template in wordpress is what would be selected from the templates dropdown when creating a page. So adding the template label inside your cases.php would give you that file showing in that dropdown.

    If you have not already, this is a good overview of templates http://codex.wordpress.org/Stepping_Into_Templates and http://codex.wordpress.org/Page_Templates

    Generally, I’m not sure you’ll be able to do what you are looking for just because a custom post type isn’t a post but actually a page (a weird wordpress naming scheme). Blog posts specifically are the only thing in worpdress that gets treated like actual blog posts with the ability to use archives by date and things like that.

    If its just the style of the page however, you may find this tutorial by Nick helpful: https://vimeo.com/channels/aviathemes/64996057

    Regards,

    Devin

    #117588

    In reply to: Demo Content Galerien

    Hallo,

    ich habe leider keinen Zugriff auf den Demo Content. Möglicherweise ist er aber auch im Dummy Content enthalten (Enfold und den grünen “Dummy Data” button klicken – aber Achtung nur auf einem Testsystem, den es kann bestehender Content überschrieben werden).

    Wenn die Gallerie neben “SOME ENFOLD CORE FEATURES” gemeint ist – diese lässt sich sehr leicht nachstellen, nämlich mit: http://www.clipular.com/c?5499120=Mnr1inoJoiqNQM7uPkrYLQuixaM&f=.png

    Vermutlich fehlen aber die kleinen Thumbnail Bilder in der Auswahl – diese werden im nächsten Update enthalten sein. Wenn man diese jetzt schon haben möchte, öffne wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesgallery.php und ersetze:

    "subtype" =>  AviaHelper::get_registered_image_sizes(array('thumbnail','logo','widget','slider_thumb'))

    mit:

    "subtype" =>  AviaHelper::get_registered_image_sizes(array('logo'))

    #117362

    In reply to: Blog Author Block

    1) If you want to add the author blog to single post pages open up single.php and replace:

    get_template_part( 'includes/loop', 'index' );

    with:

    get_template_part( 'includes/loop', 'index' );

    $author_id = get_query_var( 'author' );
    if(empty($author_id)) get_the_author_meta('ID');
    $gravatar = get_avatar( get_the_author_meta('email', $author_id), '75' );
    $name = get_the_author_meta('display_name', $author_id);
    $heading = __("About",'avia_framework') ." ".$name;
    $heading_s = __("Entries by",'avia_framework') ." ".$name;
    $description = get_the_author_meta('description', $author_id);

    if(empty($description))
    {
    $description = __("This author has yet to write their bio.",'avia_framework');
    $description .= '</br>'.sprintf( __( 'Meanwhile lets just say that we are proud %s contributed a whooping %s entries.' ), $name, count_user_posts( $author_id ) );

    if(current_user_can('edit_users') || get_current_user_id() == $author_id)
    {
    $description .= "</br><a href='".admin_url( 'profile.php?user_id=' . $author_id )."'>".__( 'Edit the profile description here.' )."</a>";
    }
    }

    echo "<span class='post-author-format-type blog-meta'><span class='rounded-container'>{$gravatar}</span></span>";
    echo "<div class='author_description '><h3 class='author-title'>{$heading}</h3>".wpautop($description)."<span class='author-extra-border'></span></div>";

    2) To remove the preview image link open up includes/loop-index.php and delete following line:

    if($slider) $slider = '<a href="'.$link.'">'.$slider.'</a>';

    #116926

    In reply to: Popular posts list bug

    Hi,

    Congratulations, you have found a genuine bug that I was able to reproduce. Well not so much a bug, since if you would have added the image via the slider it would have used that image, but there was no fallback to featured image unlike the other widgets.

    So please open up /framework/php/class-framework-widgets.php and find lines 944-947 that look like:

    if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) )
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    }

    and replace the block of code above with the code below

    if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) )
    {
    $image = avia_image_by_id($slides[0]['slideshow_image'], 'widget', 'image');
    }
    if(!$image && current_theme_supports( 'post-thumbnails' ))
    {
    $image = get_the_post_thumbnail( get_the_ID(), 'widget' );
    }

    Please let us know how it worked out.

    Thanks,

    Nick

    #22851
    emv2013
    Participant

    Hi,

    Can somebody help me with this kind of problem?

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /public/sites/www.ellenmartineverkade.nl/wp-content/themes/enfold/includes/admin/register-dynamic-styles.php on line 121

    Regards

    #117382

    In reply to: Blog option

    1) It’s ok :)

    2) Ok, I’d like to my homepage, the images to appear in a circle of 150 by 150, like this : 810197Capturedcran20130505114631.png

    What code snippet I need to integrate to had the same result?

    3) It’s ok :)

    Thank you very much Dude :)

    #117381

    In reply to: Blog option

    1) Maybe you need to activate the option on the post editor screen. Click on “Screen options” in the right corner and check the excerpt checkbox: http://www.clipular.com/c?5393178=DWPIZfYn3Pt6vQ_8EL0lN6Pc9Js&f=.png

    2) The reason is that the portfolio thumbnail size is used which does not crop the image. We’ll include an option to select a different thumbnail size in the next version. For now you can change the thumbnail dimensions in functions.php – search for:

    $avia_config['imgSize']['portfolio'] 		 	= array('width'=>495, 'height'=>400 );						// images for portfolio entries (2,3 column)

    and set the height to a lower value. Afterwards regenerate the thumbnails http://wordpress.org/extend/plugins/regenerate-thumbnails/

    Another option would be to upload bigger thumbnails with at least 495x400px.

    3) Probably a bug but I fixed it. Try following – open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php

    and replace:

    $excerpt .= '<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>';

    with

    $excerpt .= '<div class="read-more-link"><a href="'.get_permalink($the_id).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow">  &rarr;</span></a></div>';

    #116779

    In reply to: Child Theme

    I created a simple child theme for you: http://www.mediafire.com/?7r4payhwqdjeihh – just upload & install it. You can add your custom css code into style.css and your php code goes into functions.php.

    #116732

    Hi,

    Please open up /config-templatebuilder/avia-shortcodes/gallery.php and find line 178 than looks like

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}'><img {$tooltip} src='".$img[0]."' title='' alt='' /></a>";

    and change it to look like

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}'><img {$tooltip} src='".$img[0]."' title='' alt='' /><span class='captions-gallery'>".$caption."</span></a>";

    The prettyPhoto is a bit tougher, please hang on and let me know first how that worked out as I work on prettyPhoto.

    Thanks,

    Nick

    I just noticed that Kriesi uses the function get_previous_post/get_next_post functions for the next/previous links. Unfortunately these functions rely on the get_adjacent_post() function in wp-includeslink-template.php which does not support custom taxonomies (like portfolio entries, etc.) yet. It just supports standard posts and categories if you want to select posts from the same category. So for now this won’t be possible but you can add it to the feature request list: https://kriesi.at/support/topic/enfold-feature-requests

    A workaround would be to use a plugin from here: http://wordpress.stackexchange.com/questions/8058/next-post-link-on-custom-taxonomy and to replace the get_previous_post/get_next_post function calls in functions-enfold.php:

    $entries['prev'] = get_previous_post($same_category);
    $entries['next'] = get_next_post($same_category);

    with a custom next/previous page function. I guess we need to wait for WP3.7 – then the next/previous page functions should also support custom taxonomies: http://core.trac.wordpress.org/ticket/17807

    Hi Ariel,

    There is no icon with the icon font used so if you want to add it in you can add a new option for it in includes>admin>register-admin-options.php after the vimeo option on line 779:

    'Vimeo' 	=> 'vimeo',
    'Youtube' => 'youtube',

    You would then need to style the youtube class with your own icon as the background image and give it a defined width/height. Kriesi said that if/when an icon becomes available it will be added in.

    Regards,

    Devin

    Edit: May be able to be added in shortly, will fully update when I know one way or another.

    #22632
    R3V0X
    Participant

    Hey ! This topic was locked : https://kriesi.at/support/topic/icons-before-the-title-menu#post-107848 but Ismael didn’t answer at my question.

    I would like to insert an icon in the main menu as the site mentioned in the other topic.

    Like this : 827400Capturedcran20130430111558.png

    Thx

    #115331

    In reply to: Blog Layout

    Hi,

    The answer is Yes and Yes.

    First thing you should do is add the dynamic layout functionality to posts which is done by opening up /config-templatebuilder/avia-template-builder/config/meta.php: and finding lines 4-7 which look like

    $boxes = array(
    array( 'title' =>__('Avia Layout Builder','avia_builder'), 'id'=>'avia_builder', 'page'=>array('portfolio','page'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),
    array( 'title' =>__('Layout','avia_builder'), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post'), 'context'=>'side', 'priority'=>'low'),
    );

    and replacing those line with the block below

    $boxes = array(
    array( 'title' =>__('Avia Layout Builder','avia_builder'), 'id'=>'avia_builder', 'page'=>array('portfolio','page','post'), 'context'=>'normal', 'priority'=>'high', 'expandable'=>true ),
    array( 'title' =>__('Layout','avia_builder'), 'id'=>'layout', 'page'=>array('portfolio', 'page' , 'post'), 'context'=>'side', 'priority'=>'low'),
    );

    =================

    Now just add the elements as you see here: http://i.imgur.com/CvFeJUK.png

    And you get this:. http://i.imgur.com/yIxN1ou.png

    You can see there are 2 titles, so You may not need to add the very first element after 1/1

    ================

    To change the default image size of any location within the theme, it is best to install Simple Image Sizes plugin http://wordpress.org/extend/plugins/simple-image-sizes/

    The plugin will add all the default sizes to Settings > Media , and you can change width height as well as to force a crop or not. Just remember that after changing the settings using the plugin, only the new images you add will be affected while the ones you uploaded will remain the same unless you regenerate them on the same page using the same plugin.

    Thanks,

    Nick

    #114525

    Hi,

    I changed a good portion of the code. It’s not as neat and high level like Kriesi’s because unfortunately I don’t have his skills. However it works with directions as well as single points, with multiple maps on a single page of both driving directions and only one location map point.

    View post on imgur.com

    I am certain when the next update comes Kriesi will do his magic. But for now:

    Please open up /framework/php/class-framework-widgets.php and find line 1171 which looks like:

    $directionsForm = "";

    And delete line 1171 and everything below it.

    In its place, please add the code below

    if(empty($avia_config['g_maps_widget_active']))
    {
    $output .= "<script type='text/javascript' src='$prefix://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'></script>";
    $avia_config['g_maps_widget_active'] = 0;
    }

    $avia_config['g_maps_widget_active'] ++;

    $output .= "<script type='text/javascript'>
    function makeMap_".$avia_config['g_maps_widget_active']."() {
    var directionsDisplay;
    directionsDisplay = new google.maps.DirectionsRenderer;
    var directionsService = new google.maps.DirectionsService;
    var map;
    var latlng = new google.maps.LatLng(".$lat.", ".$lng.");
    var directionsto = '".$directionsto."';
    var myOptions = {
    zoom:".$zoom.",
    mapTypeControl:true,
    mapTypeId:google.maps.MapTypeId.".$type.",
    mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},
    navigationControl:true,
    navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},
    center:latlng
    };
    map = new google.maps.Map(document.getElementById('avia_google_maps_$unique'), myOptions);
    if(directionsto.length > 5) {
    directionsDisplay.setMap(map);
    var request = {
    origin:directionsto,
    destination:latlng,
    travelMode:google.maps.DirectionsTravelMode.DRIVING
    };
    directionsService.route(request, function(response, status) {
    if(status == google.maps.DirectionsStatus.OK) {
    directionsDisplay.setDirections(response)
    }
    })
    }
    else {
    var contentString = '".$content."';
    var infowindow = new google.maps.InfoWindow({
    content: contentString
    });
    var marker = new google.maps.Marker({
    position: latlng,
    map: map,
    title: ''
    });
    }
    }
    jQuery(document).ready(function() {
    makeMap_".$avia_config['g_maps_widget_active']."()
    });
    </script>
    <div id='avia_google_maps_$unique' class='avia_google_maps_container'></div>
    ";

    return $output;
    }

    Thanks,

    Nick

    #115525

    In reply to: Installation Enfold

    Nach dem FTP-Upload lautet die Fehlermeldung folgendermaßen:

    Fatal error: Cannot redeclare layerslider_load_lang() (previously declared in /mnt/webk/b3/32/52856732/htdocs/WordPress_01/wp-content/plugins/LayerSlider/layerslider.php:89) in /mnt/webk/b3/32/52856732/htdocs/WordPress_01/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php on line 102

    #114917

    Started the Dutch translation, just under 10% so still a long way to go ;-)

    http://www.mediafire.com/download.php?cwbpn4yna5wq76n

    #114519

    [Edit: Code below works with single point map. If you want driving directions, a better solution is found on this url https://kriesi.at/support/topic/google-maps-widget-in-custom-widget-area#post-106864 ]

    Hi,

    Ok, Once you make the replacement below, everything will work fine. Please open up /framework/php/class-framework-widgets.php and find line 1177 which looks like

    $output .= "<script type='text/javascript'>

    and delete line 1177 and all other lines till the end of the file.

    In their place, please paste the code below

    $output .= "<script type='text/javascript'>
    function makeMap_".$avia_config['g_maps_widget_active']."() {
    var latlng = new google.maps.LatLng(".$lat.", ".$lng.")
    var myOptions = {
    zoom: ".$zoom.",
    center: latlng,
    mapTypeControl: true,
    mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
    navigationControl: true,
    navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
    mapTypeId: google.maps.MapTypeId.".$type."
    };
    var map = new google.maps.Map(document.getElementById('avia_google_maps_$unique'), myOptions);
    var contentString = '$content.$directionsForm';
    var infowindow = new google.maps.InfoWindow({
    content: contentString
    });
    var marker = new google.maps.Marker({
    position: latlng,
    map: map,
    title: ''
    });
    google.maps.event.addListener(marker, 'click', function() {
    infowindow.open(map,marker);
    });
    }
    jQuery(document).ready(function() {
    makeMap_".$avia_config['g_maps_widget_active']."();
    });
    </script>
    <div id='avia_google_maps_$unique' class='avia_google_maps_container'></div>";

    return $output;
    }

    Thanks,

    Nick

    #114388

    In reply to: Random errors …

    I updated to the latest from ThemeForest (Enfold 1.2) and the errors haven’t gone away:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #115127

    Here is another error I just got, on the update page for the w3 cache plugin:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #22265
    lenscraft
    Participant

    I am occasionally getting the following errors from the Enfold admin screen. They appear at the top of the page, just below the WordPress bar.

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    #22150

    Topic: Random errors …

    in forum Enfold
    lenscraft
    Participant

    I am getting the following errors occurring randomly while editing my pages. This is one example, but they all look similar:

    Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file(http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://kriesi.at/themes/wp-content/uploads/avia_xml/Enfold-Updates.xml&#8221; in /nfs/c07/h04/mnt/106557/domains/lenscraft.com/html/wp-content/themes/enfold/framework/php/class-update-notifier.php on line 62

    Hi,

    Since people asked here is how to add a button to the Fixed Header with Social Icons and Additional Navigation.

    The button http://www.clipular.com/c?9784008=vDuclwRmVGaUtEsvJE5OhIUqBHQ&f=.png

    The button when fixed header shrinks http://www.clipular.com/c?9782007=1ngiPM6XB_EChXBaoJWkUftEaSo&f=.png

    The only thing you need to add manually is the url where the button takes you, and the button’s label.

    ==========================================

    1) In header.php find line 157 that looks like

    <!-- end container-->

    and replace it with the block below. Inside this block you will need to add the url where the button should take people who press it in place of http://URL which should be in the format: http://www.domain.com/page/ .. and also replace PRESS ME with what you want the button to say. To change the button color change avia-color-red in the css below to blue, or green, etc..

    <div class="avia-button-wrap avia-button-right" style="margin-top: 39px;" >
    <a href="HTTP://URL" class="avia-button avia-color-red avia-size-small avia-position-right ">
    <span class="avia_iconbox_title">PRESS ME</span>
    </a>
    </div>

    ===============================================

    2) Open up /js/avis.js and find the function on line 809-847 called

    function avia_header_size()

    and replace that entire function with the one below

    function avia_header_size()
    {
    var win = $(window),
    header = $('.fixed_header #header'),
    logo = header.find('.logo img'),
    elements = $('#header_main .container, .main_menu ul:first-child > li > a:not(.avia_mega_div a)'),
    el_height = $(elements).filter(':first').height(),
    isMobile = 'ontouchstart' in document.documentElement,
    scroll_top = $('#scroll-top-link'),
    element_button = $('.avia-button-wrap.avia-button-right'),
    set_height = function()
    {
    var st = win.scrollTop(), newH = 0, newTopMargin =0;

    if(st < el_height/2)
    {
    newH = el_height - st;
    newTopMargin = 39;
    //header.removeClass('shadow');
    }
    else
    {
    newH = el_height/2;
    newTopMargin = 10;
    //header.addClass('shadow');
    }

    elements.css({height: newH + 'px', lineHeight: newH + 'px'});
    element_button.css({'margin-top': newTopMargin + 'px'});
    }

    if(!header.length) return false;

    if(isMobile)
    {
    return false;
    }

    win.scroll(set_height);
    set_height();
    }

    3) Add this css to you /css/custom.css or to Quick CSS

    .main_menu {
    right: 80px;
    }
    .avia-button-right {
    display: inline-block;
    left: 28px;
    position: relative;
    float: right;
    }
    @media only screen and (max-width: 767px) {
    .avia-button-right {
    left: initial;
    position: absolute;
    top: 89px;
    right: 9px;
    }
    }

    That’s it.

    Thanks,

Viewing 27 results - 16,861 through 16,887 (of 16,887 total)