Forum Replies Created

Viewing 30 posts - 7,711 through 7,740 (of 11,475 total)
  • Author
    Posts
  • in reply to: Enfold not allowing sites to link properly – Part II #992230

    if you like to show your site as iframe a lot of Boards only allows to show in a lightbox:

    https://gorgeconnect.com/
    this you can have with url-parameter iframe=true
    ( depends on how many and the postion if it is added to the url by ? or & )

    in reply to: Enfold not allowing sites to link properly – Part II #992218

    I haven’t quite understood the point yet.
    When I post a link, there is a placeholder and a click leads to the underlying link.
    Or would you like to post the link of your page in such a way that the page is displayed there as iframe? I also have to say that this is the first time I stumble across this parameter ?embed=true.
    If I read the right one, use the Url parameter like this: ?:embed=yes
    and as far as I know this is set as url parameter for the iframe tag – this way ( but than code in a posting must be activated and allowed
    <iframe src="https://guenterweber.com?:embed=yes"></iframe>

    in reply to: Server log files and instagram_dir #992131

    Aha thanks –

    Danke Günter – meinst du es bestand ein Zusammenhang mit dem Datenbankverbindungsfehler – und dem somit Total Ausfall der Seite?
    Wie gesagt es war leicht zu beheben in dem ich beim Hoster die Rechte neu gesetzt habe.

    in reply to: Adding Search to the Header Secondary Menu #991973

    my definitive advice – take the little magnifying glass icon instead.

    in reply to: Adding Search to the Header Secondary Menu #991961

    it is not so hard to insert that little icon for search on that place but to have the direct form there is a bit more complex.

    don’t know why$form = (ob_get_clean()) ; has to be and not $form = htmlspecialchars(ob_get_clean()) ; stays a miracle :lol

    so try ismaels code without that htmlspecialchars

    add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 );
    add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 );
    
    function avia_append_search_nav ( $items, $args )
    {	
            if ((is_object($args) && $args->theme_location == 'avia2') || (is_string($args) && $args = "fallback_menu"))
    	{
    		global $avia_config;
    		ob_start();
    		get_search_form();
    		$form =  (ob_get_clean()) ;
    
    		$items .= '<li id="menu-item-search2" class="noMobile menu-item menu-item-search-dropdown">'.$form.'</span> ';
    	}
    	return $items;
    }

    add this to your quick css:

    #avia2-menu #menu-item-search2 {
        vertical-align: top !important;
        position: relative;
        top: -12px;
    }

    but the uggliest thing is that the created ajax search will resize the header meta
    edit:

    #top #searchform .ajax_search_response {
        position: absolute;
        background-color: #fff;
        box-shadow: 2px 2px 6px #333;
    }
    • This reply was modified 6 years, 11 months ago by Guenni007.
    in reply to: Server log files and instagram_dir #991941

    thanks for the response. i don’t believe that the crash of the site is not in correlation to that – but the mysql errorlog shows that error on the time the site goes down.
    However – i have off all my sites a duplicator (bzw multisites an updraft ) backup. So no worry.

    PS i rcognized on that install that in the page widget area there are placed the instagram widget on startup ( maybe that was a demo install with those entries. I didn’t notice that because I almost never activate the sidebar for pages.

    in reply to: Add social and a button before burger #991922

    here is the method mentioned above :

    register a new social_bookmark via functions.php of your child theme
    here i take the lock but find a different icon on enfold

    function avia_add_custom_icon($icons) {
        $icons['register']  = array( 'font' =>'entypo-fontello', 'icon' => 'ue825');
        return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    function avia_add_custom_social_icon($icons) {
        $icons['Register'] = 'register';
        return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    goto your Enfold options and add that newly added “social media” (it is at the end of the list) and insert your desired link

    this turns the social_media to the left of hamburger menu – put it in functions.php of your child theme too

    function change_menu_position() { 
    ?>
    <script>
    (function($){
    	$('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu'));
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_menu_position');

    now style your newly social media button!:

    /*** this is for the new button not to have same behavior as social_bookmarks buttons ***/
    .social_bookmarks_register.av-social-link-register {
        margin: 0 15px;
        width: auto !important;
        padding: 0 15px !important;
        background-color: #42ab96 !important;
    }
    
    #top .social_bookmarks li.social_bookmarks_register a {
        width: auto !important;
        color: #fff;
    }
    
    .social_bookmarks_register .avia_hidden_link_text {
        display: inline !important;
        padding-left: 10px;
        text-decoration : none !important
    }
    
    #top #wrap_all .av-social-link-register:hover  {
        color: #fff;
        background-color: #BD5469 !important;
    }
    /*** rules for the left-hand social_bookmarks buttons ***/
    #top nav .social_bookmarks { margin-top: -20px !important; overflow: visible !important; height: 40px !important }
    .avia-menu.av_menu_icon_beside { padding-right: 0; margin-right: 0; border-right-width: 0; border-right-style: none }
    .social_bookmarks li a { height: 40px !important; line-height: 40px !important; width: 40px !important }
    #top .social_bookmarks li { width: 40px; height: auto !important }
    #top .av-logo-container .social_bookmarks li a {  border-radius: 50% }
    .av_header_transparency .social_bookmarks li a { color: #969696 !important;}

    I think this will be the better and better understanding way:
    Result – same as above: https://webers-testseite.de/cynthia/

    in reply to: Add social and a button before burger #991896

    the most easiest way would be to register a new social media button for example with a lock and have the rounded buttons as if it was a social media link – on hovering you can see the tooltip : registering.
    i do this often for links like intranet link or login links.
    this could be handeled than like on my link above – because than it is part of social-media list.

    See here Result ( i do not change to see only burger-menu – so have a look at smaller screensizes )
    https://webers-testseite.de/cynthia/

    if you like to insert for example a whole avia button shortcode – that is possible too.

    add_action('ava_inside_main_menu', function() {
      echo '<li class="registerbutton">';
      echo do_shortcode("[av_button label='Register now' link='manually,#' link_target='' size='large' position='left' label_display='' icon_select='yes-right-icon' icon_hover='aviaTBicon_hover' icon='ue875' font='entypo-fontello' color='custom' custom_bg='#42ab96' custom_font='#ffffff' av_uid='av-b9l' custom_class='' admin_preview_bg='']");
      echo '</li>';
    });
    
    function change_menu_position() { 
    ?>
    <script>
    (function($){
    	$('.main_menu ul.social_bookmarks').insertBefore($('.main_menu div.avia-menu'));
    	$('li.registerbutton').appendTo('.main_menu > .social_bookmarks');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_menu_position');

    the code can be obtained by activation of the debug mode on enfold for above rules
    echo do_shortcode(" into this comes the full shortcode of your avia button ");

    this comes to quick css:

    /*** this is for the new button not to have same behavior as social_bookmarks buttons ***/
    .registerbutton { width: auto !important }
    .registerbutton .avia_button_icon { display: inline-table }
    .social_bookmarks li.registerbutton a { border-radius: 0 !important; padding: 0 10px !important; width: auto !important; background: #42ab96; color: #fff }
    
    /*** rules for the left-hand social_bookmarks buttons ***/
    #top nav .social_bookmarks { margin-top: -20px !important; overflow: visible !important; height: 40px !important }
    .avia-menu.av_menu_icon_beside { padding-right: 0; margin-right: 0; border-right-width: 0; border-right-style: none }
    .social_bookmarks li a { height: 40px !important; line-height: 40px !important; width: 40px !important }
    #top .social_bookmarks li { width: 40px; height: auto !important }
    #top .av-logo-container .social_bookmarks li a {  border-radius: 50% }
    .av_header_transparency .social_bookmarks li a { color: #969696 !important;}
    in reply to: Add social and a button before burger #991306
    in reply to: Hover color of the font on the mobile menu #990904

    for the hamburger menu : doesn’t he like to have the current page highlighted in red?

    #av-burger-menu-ul :not(.active-parent-item) .current-menu-item > a .avia-menu-text {
        color: red !important;
    }
    in reply to: Replace a H2 by H1 in a easy slider fullpage #990579

    the whole function can be used for more replacements – just add a new line – semicolon separated

    replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>');
    replaceElementTag('#footer h3.widgettitle', '<h2></h2>');  

    etc.pp

    in reply to: What's the best way to do this? #990569

    better if the image can be masked then use a png image in a color-section with no padding ! Do not use the sligthly increase the image on hover option, because i want that only the image got the hover increase.
    give the color-section a gradient background. to have the image on the bottom of the color-section and to have no overlay on hovering do this to quick css:
    (adjust the page/post to your givings – be careful the avia_transform class is a html class)

    .avia_transform .postid-32650 a:hover .image-overlay {
      display: none !important;
    }
    
    .postid-32650 a.avia_image.lightbox-added img {
        transition: all 1s ease-in-out;
    }
    
    .postid-32650 a.avia_image.lightbox-added:hover img {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
        transition: all 1s ease-in-out;
    }

    see result here: https://webers-testseite.de/huawei-2/

    in reply to: What's the best way to do this? #990492

    take a fullwidth-slideshow.
    you can add to the image on caption a manual link (choose apply link to image) – add to the video link at the end a &iframe=true f.e.:

    https://player.vimeo.com/video/262210925?autoplay=1&loop=1&title=0&byline=0&portrait=0&iframe=true

    see here: https://webers-testseite.de/huawei/

    to pimp the whole thing a bit you can give to the hover effect some scalings – (get rid of the overlay white)

    in reply to: Change title H2 in #990481

    i thought he/she likes to replace the default h3 Iconbox title to a h2 title. – but i can not see the hidden private content – maybe there is more info on this.

    in reply to: Bootstrap button #990477

    i loaded the fa from maxcdn and the styles from the link ismael gave:

    add_action( 'wp_enqueue_scripts', 'enqueue_awesome' );
    function enqueue_awesome() {
      wp_enqueue_style( 'prefix-font-awesome', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), '4.7.0' );
      wp_enqueue_style( 'font-awesome-styles', 'https://unpkg.com/@coreui/coreui/dist/css/coreui.min.css', array(), '1.0' );
    }

    the only thing to correct was in quick css a bit:

    .btn { font-weight: 600 !important}
    .btn-brand i { font-size: 22px }
    .btn-brand i { margin: -.375rem .75rem -.375rem -.75rem }

    and don’t make line-breaks in text-field:
    <button class="btn btn-brand btn-youtube" type="button"><i class="fa fa-youtube"></i>Youtube</button>

    Edit : i removed the code above from my test-page now – because It does not meet the requirements of the GDPR

    in reply to: Replace a H2 by H1 in a easy slider fullpage #990468

    to change all captions from h2 to h1 put this into your functions.php of your child-theme:

    
    
    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('.slideshow_caption h2.avia-caption-title', '<h1></h1>');
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');
    in reply to: Change title H2 in #990449

    the function above is a general tag replacement function under preventing every attribut set on the original tag
    the lines of replacement are only separated by semicolon. so for example if you like to switch in the footer from h3 headings to h2 headings only add in the function:

    replaceElementTag('h3.widgettitle', '<h2></h2>');

    in reply to: Change title H2 in #990438

    read carefully on top of this page – it works with child-theme and edited Alb Elements:
    https://webers-testseite.de/edited-enfold-alb-elements/#icons

    or if you only want that for all icon-box titles instead of h3 a h2 – put this to functions.php of your child-theme

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
        
           replaceElementTag('h3.iconbox_content_title', '<h2></h2>');  //you can add here more tag replacements 
          
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');
    in reply to: Replace a H2 by H1 in a easy slider fullpage #990252

    this solution ( you can get rid of the if is_page when you want to be active on all sites) will work.
    On future Projects you can use my edited alb elements where you have the choice to set the h-tag as you like!
    https://webers-testseite.de/edited-enfold-alb-elements/#sliders

    in reply to: Advance Layer Slider video issues #990172

    don’t know – he has opend a new thread – but my solution with selfhosted video works !

    on this case : If you want simple solutions, you have to be satisfied with simple requirements.

    in reply to: Bootstrap button #990151

    If you have no concerns about GDPR, you can enqueue the styles of Fontawesome via CDN.
    So you can use it manual – but problem would be that these sources need the newest jQuery – not that common one that Enfold uses !
    You can do it via functions.php of your child-theme:

    add_action( 'wp_enqueue_scripts', 'enqueue_awesome' );
    function enqueue_awesome() {
      wp_enqueue_style( 'prefix-font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', array(), '4.7.0' );
    }

    So my Advice is to use fontello fontawesome – import that to Enfold and use it with Enfold buttons.
    To style the buttons a bit more you can do that: https://webers-testseite.de/buttons/

    these are Enfold Buttons Alb with light-transparent layout and a bit of css

    in reply to: Layer with transparent background #990139

    on Avia Layout Builder take a color-section.
    Open that color section options dialog – click to the section background and set your wanted image.
    Set your image behavior here too- if you like to repeat the background or if it is stretched. (on your example it seems to cover the element)
    Set the image as you like to behave : scroll, parallax or fixed ( all will leave the screen on scrolling but with different effects)
    Goto the tab on top : Section Background Overlay – set your overlay color if wanted – on your example it seems to be a black overlay color with f.e. 0.5 opacity.
    Thats all – you can drag all you wanted into the color section now

    in reply to: Rel = next and prev not working #989826

    by the way a bit offtopic – wouldn’t it be nice to have this on the prev/next navigation beween posts/portfolios.
    maybe to the anchor itself

    function add_rel_attribute(){
    ?>
    <script>
    (function($){
    	$('a.avia-post-prev').attr('rel', 'prev');
    	$('a.avia-post-next').attr('rel', 'next');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_rel_attribute');
    in reply to: Quick css window size #989817

    i do allways this code to functions.php of my child-theme – it deactivates the reset all button too:

    function admin_head_mod() {
    echo '<style type="text/css">
    #avia_quick_css .avia_description {float: none;margin-bottom: 20px !important;padding-left: 0 !important;width: 98%}
    #avia_quick_css .avia_control {float: left;max-width: 98% !important;width: 98% !important}
    .avia_footer_links li {float: left;padding-right: 20px}
    .avia_footer .avia_footer_save {float: left}
    .avia_reset {pointer-events: none !important }
    </style>';
    }
    add_action('admin_head', 'admin_head_mod');
    in reply to: White Screen of Death After Editing .php File #989779

    by the way: this should not happen if you got a newer wordpress version.
    In former times – yes i do have that too, but now they gave some error-messages out to solve those issue.

    These issues can happen if you are having wrong brackets or forgotton semicolon.
    if you got double function names ( this is probably one of the most common mistakes ) because here on board the code-snippets are often named the same way.
    f.e. adding custom widgets to the header – but what if you like to have two widget-areas: all snippet functions here on board named : enfold_customization_header_widget_area

    so adding two of them will cause an error (on former times a white screen of death) etc. pp

    you are always welcome
    and even if English is not my native language, I am probably understood, even if my sentence constructions are easily recognizable as German.

    in reply to: Advance Layer Slider video issues #989753

    hope you have adjusted the path ?

    On my end : https://webers-testseite.de/weber/whdsolutions/
    it seems to work with that:

    in reply to: moving the search box #989528

    can you try this in your functions.php of your child-theme:
    this filter you will only need if you havn’t got a secondary menu or social media – so there will be no header-meta
    add_filter( 'avf_execute_avia_meta_header', '__return_true', 10, 1);

    for you this will be enough i think:

    add_filter( 'avia_meta_header', 'avia_append_search_nav_mod');
    function avia_append_search_nav_mod()
    {
              global $avia_config;
              ob_start();
              get_search_form();
              $form =  htmlspecialchars(ob_get_clean()) ;
    
              $items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special">
                            <a href="?s=" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'>
                              <span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span>
                            </a>
                        </li>';
    
        echo $items;
    }

    Edit: i see it has on header meta a list-point so add this to your quick css:

    #top #menu-item-search {
        list-style: none;
    }

    But I appreciate your kind offer, though. Thank you

    I’m just afraid you’re not going to give me as much pleasure as you think.
    I have only drunk coffee for years if it was made using a machine with an E61 brewing group.
    (mine is a Rocket Espresso Giotto Evoluzione with rotation pump)
    Such espresso machines are able to turn even a 100% Arabica into a dreamlike crema.

    https://thumb.ibb.co/eV5MjT/crema.jpg
    not my Foto (i do not use bottomless filter holders)

    And I pimp Starbucks like Amazon.

    By the way, Chuck Norris can count to infinity – two times ;)

    please delete your comment on this rule:
    // Full Width on Mobile for Blog Featured Images and Videos

    because on css you comment things by: /**** comment ***/

    the method by //comment is used in php files

Viewing 30 posts - 7,711 through 7,740 (of 11,475 total)