Forum Replies Created

Viewing 30 posts - 5,641 through 5,670 (of 10,177 total)
  • Author
    Posts
  • in reply to: Fotos mit Beschreibung werden unscharf #1063564

    it is definitly that the padding as Ismael supposed caused the issue – so it is better on the div container than on the image:
    ( well to see at the left rear table leg and at the shadow underneath. )
    the padding on the img does scale it – thats why there is a difference on sharpness

    div .wp-caption { padding: 4px }
    #top .wp-caption img { padding: 0 !important}

    4px because of 1px border-width

    i have now three images

    • the first with the padding to the image ( enfold default)
    • the second with caption but with the padding on the container and image no padding! (see code above)
    • the third without caption

    https://webers-testseite.de/images-with-caption-in-text-block/

    by the way: delete all cachings and if you merge css and js on Enfold Options / Performance – refresh them

    in reply to: Fotos mit Beschreibung werden unscharf #1063560

    what I find much worse than the loss of sharpness is the slight color shift.
    The picture looks like a light veil over it, and slips into the greenish (very little but visible) over.
    (like a hue-rotation on 4 or 5deg)

    but I never saw the one with the different sharpness until you brought it up here. Thanks – now it bothers me too ;)

    https://webers-testseite.de/images-with-caption-in-text-block/

    Edit: it seems to be the padding of 5px to center that image in the border-frame
    if you get rid of it on developer tools by uncheck the rule the image is sharp

    in reply to: sticky contact – moving #1063540

    And even that page – allthough it is not yours and not under construction is a secret to put it in private content area?

    in reply to: Make video background responsive on mobile #1063361

    Yes this plugin works with alb or classic editor.
    But you have to insert that shortcode via Code-Block element.
    _________
    If you follow the legal text exactly, no information ( yes also an IP is this ) may take place before the Opt-In. In my opinion the homepage ( landing page ) is an unsuitable place for a Background Youtube or Vimeo movie. Because as soon as a page is called, the transmission takes place in the direction of Google (in the case of Youtube). Ideally it would be if first a page is opened without Background Film (self-hosted films excluded) on which the Opt-In procedure is initiated. E.g. by a link to the privacy policy page.
    But this is up to you how you proceed. A wave of lawsuits has probably failed to materialize.

    in reply to: Make video background responsive on mobile #1063267

    A next topic in this connection is the GDPR compliance. One must therefore pay attention to the fact that the visitors of the side can open the corresponding sides only if one has agreed to it by means of Opt-In solution. In any case with Vimeo and Youtube implementation.

    in reply to: Make video background responsive on mobile #1063265

    All big Themes with drag and drop helper Tools have this problem. I looked for a Divi Solution for a customer and found a tut with that littel plugin above.
    The trouble was to adapt it to the enfold-theme.
    The Problem with video is that even if you have LTE Support on your mobile device – the RAM and ROM on Mobile Phones is limited.
    On my webdesign homepage that is only a self-hosted very small Video. This will work propper. And then layerslider is a good solution because it is hard to get it responsive – even for mobiles too.

    in reply to: Make video background responsive on mobile #1063242

    i would like to help you.
    But i guess this will only work with a third party plugin.: Advanced WordPress Backgrounds

    see here a page in testing mode with youtube background video: https://webers-testseite.de/carinda/

    Look with your devices to it and tell me if all works as you like to have it.
    Afterwards i will give you support on that

    in reply to: Formular from shotcode not working #1062928

    well – where did you get the code for it?
    there are so many different quotes and double quotes!
    i can not say if your code will do what you want but this is it with correct signs

    Try to copy/paste this :

    function nb_get_infos(){
    ?>
    	<form method="post" action="?register=1">
    	<label for="Name"><b>Name:</b></label><br>
    	<input type="text" id="Name" name="Name"><br><br>
    	<input type="submit" name="submit">
    	</form>
    <?php
    global $wpdb;
    if(isset($_GET['register'])) {
    $nb_Name = $_POST['Name'];
    if($nb_Name != "TEST")
    {
    $user_daten = $wpdb->get_row("SELECT * FROM wp_users WHERE ID = 1");
    return "User Display Name: ".$user_daten->display_name; //display_name
    }
    }
    }
    add_shortcode( 'nb_infos', 'nb_get_infos' );
    in reply to: Lost header transparency on mobile devices #1062923

    i think this will be an auto-optimize thing.

    in reply to: Enfold Header wechseln in Mobile Ansicht #1062741

    was ist mit diesem Rätselwort gemeint?
    Nein – im Ernst – etwas präziser.
    Was soll denn anders werden.

    in reply to: Different header logo for different sections of website #1062733

    does “or” realy works ?
    if not try: ||

    if(is_tree(515) || is_singular('procurement-pages'))

    in reply to: Posts Link Arrow #1062729

    if you only want to get rid of the arrows ( green background) :

    .image-overlay .image-overlay-inside {
        display: none !important;
    }

    if you like to get rid of whole overlay – including the white overlay:

    .image-overlay  {
        display: none !important;
    }
    in reply to: Custom slider by day #1062568

    Please be a little more specific about your requirements.
    For example, would it be enough if you had a color section that changes the wallpaper day by day?

    if so : make a color-section and define one background-image as you like to have it ( cover image , bottom center etc. pp)
    Give a unique ID to the color-section f.e.: customID
    you have to know now the page id ( so that we don’t have to load the script on pages that don’t need it at all. ) (in my case it is page id 34024)
    – the relative path to your images (imglocation)
    Put this into your child-theme functions.php

    add_action( 'wp_footer', 'schedule_bg_image' );
    function schedule_bg_image() {
    if(is_page(34024)){ 
    ?>
    <script type="text/javascript">
    var imglocation = "/wp-content/uploads/layerslider/Origami/";
     function ImageArray (n) {
       this.length = n;
       for (var i =1; i <= n; i++) {
         this[i] = ' '
       }
     }
    image = new ImageArray(7);
    image[0] = 'slide1.jpg'; // Sunday
    image[1] = 'slide1.jpg'; // Monday
    image[2] = 'slide2.jpg'; // Tuesday
    image[3] = 'slide3.jpg'; // Wednesday
    image[4] = 'slide4.jpg'; // Thursday
    image[5] = 'slide1.jpg'; // Friday
    image[6] = 'slide1.jpg'; // Saturday
    var currentdate = new Date();
    var imagenumber = currentdate.getDay();
    document.getElementById('customID').style.backgroundImage = 'url(' + imglocation + image[imagenumber] + ')';
    </script>
    <?php
    }
    }

    see here : https://webers-testseite.de/bg-scheduling/

    Dear scottwgraves – you should have just left that old unspeakable subject in the closet. Look at the date of the thread – obviously the lady still stayed with Enfold; the links within the oversized collection of support requests – after all already 5 – are all still enfold pages.

    Another question ( besides of a lifelink ) is it a page with transparent header?
    because then you have to substitute the alternate Logo first.

    add_filter('avf_header_setting_filter','replace_logo_for_transparent_pages');
    function replace_logo_for_transparent_pages($header){
        if(is_page(9)){
            $header['header_replacement_logo'] = "https://url-to-the-new-logo";
        }
        return $header; 
    }

    that is the logo you put in on Enfold (Child) – Header – Transparency Options : “Transparency Logo”

    in reply to: BreadCrumb Not appearing on some pages #1061832

    i’m participant as you so i do not see your private content.
    your page was down or under maintainance mode – so i only can suggest what was happening
    see how it works on my testinstallation: https://webers-testseite.de/ostler/breadcrumb-with-transparency-header/
    Most of the problems seeing no breadcrumb comes from that line mentioned above.
    a livelink working to see what is the reason would be nice to have

    • This reply was modified 5 years, 2 months ago by Guenni007.
    in reply to: Custom CSS Class not working #1061622

    Well Classes and IDs are two different things.
    A class in css code has a dot in front of it ( but do not insert in that ALB Inputfiled the class with that dot)
    so in your code as you did it the rule is f.e.:

    .button_new {
    border-radius: 15px !important;
    }

    but in the input field of your button you only fill in: button_new
    because this is a common mistake, I mention this in advance – because I can’t see a lifelink to check it.

    So if you can make it public it is easier to find the correct code.

    #top .button_new {
    border-radius: 15px !important;
    }

    Next is: The css works with a specifity calculator – that means if a rule is more specific than another one it has more weight.
    An additonal ID f.e. like #top can make the decission to show or not
    and on the fullwidth button the class goes to the wrapper of the button – this is one level above
    try:

    body .button_new .avia-button-fullwidth {
        border-radius: 15px;
    }
    in reply to: BreadCrumb Not appearing on some pages #1061608

    OR

    if you only want the breadcrumb you can place it by hand with a shortcode ( but without the title on the left)

    
    function av_breadcrumbs_shortcode( $atts ) {
    return avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true));
    }
    add_shortcode( 'bread_crumb', 'av_breadcrumbs_shortcode' );

    use it then as[bread_crumb]

    in reply to: BreadCrumb Not appearing on some pages #1061604

    maybe there is a child-theme possibility now to comment that line out – but in former times i asked and searched for a solution – there was no other way to make it.

    in reply to: BreadCrumb Not appearing on some pages #1061599

    because all functions which starts with if(!function_exists(‘XXXX’)) can be replaced by a copy in functions.php child-theme

    so here we go – both comes to your child-theme functions.php

    the whole function:

    if(!function_exists('avia_header_setting'))
    {
    	function avia_header_setting($single_val = false)
    	{
    		global $avia_config;
    		if(isset($avia_config['header_settings']) && $single_val && isset($avia_config['header_settings'][$single_val])) return $avia_config['header_settings'][$single_val];
    		if(isset($avia_config['header_settings']) && !$single_val) return $avia_config['header_settings']; //return cached header setting if available
    		
    		$defaults = array(  'header_position' 			=> 'header_top',
    							'header_layout'				=>'logo_left menu_right', 
    							'header_size'				=>'slim', 
    							'header_custom_size'		=>'', 
    							'header_sticky'				=>'header_sticky', 
    							'header_shrinking'			=>'header_shrinking', 
    							'header_title_bar'			=>'',
    							'header_social'				=>'',
    							'header_unstick_top'		=>'',
    							'header_secondary_menu'		=>'', 
    							'header_stretch'			=>'',
    							'header_custom_size'		=>'',
    							'header_phone_active'		=>'',
    							'header_replacement_logo'	=>'',
    							'header_replacement_menu'	=>'',
    							'submenu_visibility' 		=> '',
    							'overlay_style'				=> 'av-overlay-side',
    							'header_searchicon' 		=> true,
    							'header_mobile_activation' 	=> 'mobile_menu_phone',
    							'phone'						=>'',
    							'sidebarmenu_sticky' 		=> 'conditional_sticky',
    							'layout_align_content' 		=> 'content_align_center',
    							'sidebarmenu_widgets' 		=> '',
    							'sidebarmenu_social' 		=> 'disabled',
    							'header_menu_border' 		=> '',
    							'header_style'				=> '',
    							'blog_global_style'			=> '',
    							'menu_display' 				=> '',
    							'alternate_menu'			=> '',
    							'submenu_clone' 			=> 'av-submenu-noclone',
    						  );
    							
    		$settings = avia_get_option();
    		
    		//overwrite with custom fields if they are set
    		$post_id = avia_get_the_id();
    		if($post_id && is_singular())
    		{	
    			$custom_fields = get_post_custom($post_id);
    			
    			foreach($defaults as $key =>$default)
    			{
    				if(!empty($custom_fields[$key]) && !empty($custom_fields[$key][0]) ) 
    				{
    					$settings[$key] = $custom_fields[$key][0];
    				}
    			}
    			
    			//check if header transparency is set to true
    			$transparency = post_password_required() ? false : get_post_meta($post_id, 'header_transparency', true);
    		}
    				
    		$header = shortcode_atts($defaults, $settings);
    		$header['header_scroll_offset'] = avia_get_header_scroll_offset($header);
    		
    		//if sidebar main menu is active set the header accordingly and return the sidebar header
    		if($header['header_position'] != "header_top") return avia_header_setting_sidebar($header, $single_val);
    		//------------------------------------------------------------------------------------------------------
    		//------------------------------------------------------------------------------------------------------
    
    		//if header main menu is above the logo set a var to indicate that and disable transparency and shrinking
    		if( strpos( $header['header_layout'] , 'top_nav_header' ) !== false ) 
    		{
    			$header['header_menu_above'] = true;
    			$header['header_shrinking']  = 'disabled';
    			$transparency = false;
    		}
    		
    		//set header transparency
    		$header['header_transparency'] = "";
    		if(!empty($transparency)) $header['header_transparency'] = 'header_transparency';
    		if(!empty($transparency) && strpos($transparency, 'glass')) $header['header_transparency'] .= ' header_glassy';
    		if(!empty($transparency) && strpos($transparency, 'with_border')) $header['header_transparency'] .= ' header_with_border';
    		if(!empty($transparency) && strpos($transparency, 'hidden')) $header['disabled'] = true;
    		if(!empty($transparency) && strpos($transparency, 'scrolldown')) 
    		{
    			$header['header_transparency'] .= ' header_scrolldown';
    			$header['header_sticky'] = 'header_sticky';
    		}
    		
    		
    		//deactivate title bar if header is transparent
    		//if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';
    		
    		//sticky and shrinking are tied together
    		if($header['header_sticky'] == 'disabled') { $header['header_shrinking'] = 'disabled'; $header['header_scroll_offset'] =  0; }
    		
    		//if the custom height is less than 70 shrinking doesnt really work
    		if($header['header_size'] == 'custom' && (int) $header['header_custom_size'] < 65) $header['header_shrinking'] = 'disabled';
    		
    		//deactivate icon menu if we dont have the correct header
    		if(strpos(avia_get_option('header_layout'), 'main_nav_header') === false) $header['menu_display'] = "";
    		
    		if($header['menu_display'] == 'burger_menu') { $header['header_menu_border'] = "";}
    		
    		if(avia_is_burger_menu())
    		{
    			$header['header_mobile_activation'] = "mobile_menu_tablet";
    		}
    		
    		//create a header class so we can style properly
    		$header_class_var = array(	'header_position', 
    									'header_layout', 
    									'header_size', 
    									'header_sticky', 
    									'header_shrinking', 
    									'header_stretch', 
    									'header_mobile_activation', 
    									'header_transparency', 
    									'header_searchicon', 
    									'header_unstick_top',
    									'header_menu_border',
    									'header_style'
    								);
    								
    		$header['header_class'] = "";
    		
    		foreach($header_class_var as $class_name)
    		{
    			if(!empty($header[$class_name]))
    			{
    				if($header[$class_name] == "disabled") $header[$class_name] = $class_name."_disabled";
    				$header['header_class'] .= " av_".str_replace(' ',' av_',$header[$class_name]);
    			}
    		}
    		
    		//set manual flag if we should display the top bar
    		$header['header_topbar'] = false;
    		if(strpos($header['header_social'], 'extra_header_active') !== false || strpos($header['header_secondary_menu'], 'extra_header_active') !== false || !empty($header['header_phone_active'])){ $header['header_topbar'] = 'header_topbar_active'; }
    		
    		//set manual flag if the menu is at the bottom
    		$header['bottom_menu'] = false;
    		if(strpos($header['header_layout'],'bottom_nav_header') !== false) 
    		{
    			$header['bottom_menu'] = 'header_bottom_menu_active'; 
    		}
    		else
    		{
    			$header['header_class'] .= " av_bottom_nav_disabled ";
    		} 
    		
    		
    		
    		//header class that tells us to use the alternate logo
    		if(!empty($header['header_replacement_logo']))
    		{
    			$header['header_class'] .= " av_alternate_logo_active"; 
    			if(is_numeric($header['header_replacement_logo']))
    			{ 
    				$header['header_replacement_logo'] = wp_get_attachment_image_src($header['header_replacement_logo'], 'full'); 
    				$header['header_replacement_logo'] = $header['header_replacement_logo'][0]; 
    			}
    		
    		}
    		
    		//header class that tells us to use the alternate logo
    		if(empty($header['header_menu_border']))
    		{
    			$header['header_class'] .= " av_header_border_disabled"; 
    		}
    		
    		
    		$header = apply_filters('avf_header_setting_filter', $header);
    
    		//make settings available globaly
    		$avia_config['header_settings'] = $header;
    		
    		if(!empty($single_val) && isset($header[$single_val])) return $header[$single_val];
    		
    		return $header;
    	}
    }

    to shift then the breadcrump under the first container:

    function change_position(){
    ?>
    <script>
    (function($){
         $('#main .title_container').insertAfter('.html_header_transparency div.avia-builder-el-0');
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'change_position');
    in reply to: BreadCrumb Not appearing on some pages #1061594

    read next post

    in reply to: BreadCrumb Not appearing on some pages #1061585

    My guess is you’re using a transparent header there.

    on the function: avia_header_setting in functions-enfold.php there is on line 831:

    if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';

    so if there is a transparent header the title_bar is hidden.

    you can make a copy of that function in functions-enfold.php in your child-theme functions.php and comment that line out by setting two of them in front://

    //if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';

    in reply to: side bar at the bottom in blog #1061519

    is there a livelink for your page?

    in reply to: side bar at the bottom in blog #1061454

    By the way this would be a nice to have thing dear Mods!

    An ALB Element that has all of the functions of color-section but is not a full-width element. I mean a container with the opportunity to pull in other ALB Elements.

    in reply to: side bar at the bottom in blog #1061453

    Color-Section is a full-width container. Every sidebar will go under the last color-section you use in ALB Layout.
    So you have to consider if you need such a container ( grid-row is a fullwidth container too ) in the middle of your layout. You can use a 1/1 container. This is not a full width element.

    in reply to: Social Media icons in footer widget instead of socket #1061451

    third method :
    we create a shortcode for it ( to child-theme functions.php ):

    function social_bookmarks_shortcode() {
      echo '<h3 class="widgettitle socials">Social Bookmarks</h3>';
      $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
      echo avia_social_media_icons($social_args, false);
    }
    add_shortcode('social-bookmarks', 'social_bookmarks_shortcode');

    code to quick css:

    .widgettitle.socials {
        margin: 45px 0 5px !important;
    }
    #footer .social_bookmarks li {
        margin-right: 10px;
    }
    ul.social_bookmarks + .widget {
        display: none;
    }

    the original widget heading is set to display:none
    then you can insert the shortcode into a text-widget or html-widget as : [social-bookmarks]

    in reply to: Social Media icons in footer widget instead of socket #1061447
    /*** custom social bookmarks widget  ****/
    function social_bookmarks_register_widget() {
    register_widget( 'add_social_bookmarks' );
    }
    add_action( 'widgets_init', 'social_bookmarks_register_widget' );
    
    class add_social_bookmarks extends WP_Widget {
    public function __construct() {
      $widget_ops = array(
        'classname' => 'socialbookmarks-widget', 
        'description' => __('A widget that displays the social bookmarks', 'avia_framework') 
        );
      parent::__construct( 'add_social_bookmarks', THEMENAME.' Social Bookmarks', $widget_ops );
    }
    
    public function widget( $args, $instance ) {
      $title = apply_filters( 'widget_title', $instance['title'] );
      echo $args['before_widget'];
      //if title is present
      if ( ! empty( $title ) )
      echo $args['before_title'] . $title . $args['after_title'];
      //output
      echo $before_widget;
      $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');
      echo avia_social_media_icons($social_args, false);
      echo $after_widget;
    }
    
    public function form( $instance ) {
      if ( isset( $instance[ 'title' ] ) )
      $title = $instance[ 'title' ];
      else
      $title = __( 'Social Bookmarks', 'avia_framework' );
      ?>
      <p>
      <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
      <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
      </p>
      <?php
    }
    
    public function update( $new_instance, $old_instance ) {
      $instance = array();
      $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
      return $instance;
    }
    }

    for quick css like above:

    #footer .social_bookmarks {
        float: left;
        margin: 15px 0 0 ;
        position: relative;
    }
    
    #footer .social_bookmarks li {
         float: left;
        clear: right !important;
        margin-right: 10px;
        border: 1px solid #999;
    }

    You will then have your own widget for it and can drag it in a widget-area of your choice
    All social Buttons you will define on Enfold Options will be there

    in reply to: Social Media icons in footer widget instead of socket #1061445

    there are plenty of variants on board.
    A fairly quick method is to first allow it to be displayed in the meta header at the top. Then you go into your frontend and examine the source code using Developer Tools. There you can copy the html code from the unordered list. You can copy this into html widget.
    That’s it – it looks like:

    <ul class="noLightbox social_bookmarks icon_count_2">
    	<li class="social_bookmarks_facebook av-social-link-facebook social_icon_1">
    		<a href="#" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Facebook">
    			<span class="avia_hidden_link_text">Facebook</span>
    		</a>
    	</li>
    	<li class="social_bookmarks_twitter av-social-link-twitter social_icon_2">
    		<a target="_blank" href="http://twitter.com/#/" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello" title="Twitter">
    			<span class="avia_hidden_link_text">Twitter</span>
    		</a>
    	</li>
    </ul>

    in this case this comes to quick css to have a nice view and to have the buttons side by side:

    #footer .social_bookmarks {
        float: left;
        margin: 15px 0 0 ;
        position: relative;
    }
    
    #footer .social_bookmarks li {
        float: left;
        clear: right !important;
        margin-right: 10px;
        border: 1px solid #999;
    }

    But for me i took my social bookmarks widget code to child-theme functions.php
    next post

    in reply to: Multiple new line formatting #1061344

    these are the lines in formatting.php (WordPress File) to be responsible for multiple br replacement:
    line 476ff

    // Change multiple <br>s into two line breaks, which will turn into paragraphs.
    	$pee = preg_replace('|<br\s*/?>\s*<br\s*/?>|', "\n\n", $pee);

    what makes me wonder is that the old filter in functions.php child-theme:

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    seems not to work as it should.

    Even the filter tiny_mce_before_init i try to influence it via that filter

    add_filter( 'tiny_mce_before_init', 'change_mce_options' );
    function change_mce_options( $init ) {
    	$init['extended_valid_elements'] = '*[*]';
    	$init['remove_linebreaks'] = false; 
            $init['convert_newlines_to_brs'] = true; 
    	$init['remove_redundant_brs'] = false;
    	return $init;
    }

    no effect

    the edited textblock.php ALB Element with no wpautop stripslash : https://pastebin.com/M91L76av
    _________________
    A multiple <br> will always be tranformed to one p-tag

    in reply to: Multiple new line formatting #1061129

    the thing is the multiple br use.
    If you use in Visual Mode the shift and the return – you wil have one <br>
    If you use the Return without shift it wil end in a p-tag.

Viewing 30 posts - 5,641 through 5,670 (of 10,177 total)