Forum Replies Created

Viewing 30 posts - 3,211 through 3,240 (of 3,706 total)
  • Author
    Posts
  • in reply to: Random order for Partner/Logo Element #365254

    Hey!

    Thank you for coming back.

    I’m sorry to tell you that it is not possible to find a quick solution for your request.

    I found out, that it needs a huge modification in the logic of several functions in this file.

    It is possible to implement, but this is customization and bejond the scope of support.

    Regards,
    Günter

    in reply to: Random order for Partner/Logo Element #364717

    Hey!

    I give you the full code for a quick solution:

    Replace the original code

    
    $this->slides = get_posts(array(
    				'include' => $ids,
    				'post_status' => 'inherit',
    				'post_type' => 'attachment',
    				'post_mime_type' => 'image',
    				'order' => 'ASC',
    				'orderby' => 'post__in')
    				);
    
    //resort slides so the id of each slide matches the post id
    			$new_slides = array();
    			foreach($this->slides as $slide)
    			{
    				$new_slides[$slide->ID] = $slide;
    			}
    
    

    with:

    
    $this->slides = get_posts(array(
    				'include' => $ids,
    				'post_status' => 'inherit',
    				'post_type' => 'attachment',
    				'post_mime_type' => 'image',
    				'order' => 'ASC',
    				'orderby' => 'rand')
    				);
    
                            $resort = false;
    			$new_slides = $this->slides;
    
    			//resort slides so the id of each slide matches the post id
    			if($resort)
    			{
    				$new_slides = array();
    				foreach($this->slides as $slide)
    				{
    					$new_slides[$slide->ID] = $slide;
    				}
    			}
    

    Cheers!
    Günter

    in reply to: Random order for Partner/Logo Element #364651

    Hi!

    Sorry, I missed that a resorting is taking place a couple of lines below.

    Locate the following just below:

    
    //resort slides so the id of each slide matches the post id
    			$new_slides = array();
    			foreach($this->slides as $slide)
    			{
    				$new_slides[$slide->ID] = $slide;
    			}
    

    and replace with:

    
                            $resort = apply_filters( 'avf_logoslider_resort_slides', true);
    			$new_slides = $this->slides;
    
    			//resort slides so the id of each slide matches the post id
    			if($resort)
    			{
    				$new_slides = array();
    				foreach($this->slides as $slide)
    				{
    					$new_slides[$slide->ID] = $slide;
    				}
    			}
    
    

    In functions.php add the following:

    
    add_filter('avf_logoslider_resort_slides', 'my_logoslider_resort');
    function my_logoslider_resort($resort)
    {
          return false;
    }
    

    As a quick fix replace:

    
     $resort = apply_filters( 'avf_logoslider_resort_slides', true);
    

    with

    
     $resort = false;
    

    Regards,
    Günter

    in reply to: Random order for Partner/Logo Element #364614

    Hey Siracher!

    Thank you for using our theme.

    Currently it is not possible out of the box. You have to modify the folllowing core file:

    enfold\config-templatebuilder\avia-shortcodes\logoslider.php

    Locate line 350:

    
    $this->slides = get_posts(array(
    				'include' => $ids,
    				'post_status' => 'inherit',
    				'post_type' => 'attachment',
    				'post_mime_type' => 'image',
    				'order' => 'ASC',
    				'orderby' => 'post__in')
    				);
    

    and replace with:

    
    $this->slides = get_posts(array(
    				'include' => $ids,
    				'post_status' => 'inherit',
    				'post_type' => 'attachment',
    				'post_mime_type' => 'image',
    				'order' => 'ASC',
    				'orderby' => 'rand')
    				);
    

    This is a quick fix.

    I post a filter hook to kriesi, maybe in the next releases it will be integrated:

    Replace the code above with:

    
    $args = apply_filters( 'avf_logoslider_select_args', 
    					array(	'include' => $ids,
    							'post_status' => 'inherit',
    							'post_type' => 'attachment',
    							'post_mime_type' => 'image',
    							'order' => 'ASC',
    							'orderby' => 'post__in' )
    					);
    			
    $this->slides = get_posts( $args );
    

    In functions.php of the theme or childtheme put the following:

    
    add_filter('avf_logoslider_select_args', 'my_logoslider_select_args');
    
    function my_logoslider_select_args ($args)
    		{
    			$args['orderby'] = 'rand';
    			return $args;
    		}
    
    

    If this hook is integrated, you just have to make sure, that you put the code in functions.php.

    Regards,
    Günter

    in reply to: Icon Box, icon and icons list #364606

    Hey!

    Glad we could help you. Enjoy the theme.

    Regards,
    Günter

    in reply to: Socket Issues – stretching to fill page #364587

    Hey tjswarbs78!

    Thank you for using our theme.

    I think, there is a plugin causing the problem.

    Try to deactivate all plugins and check the page.

    Then reactivate the plugins one by one.

    Regards,
    Günter

    in reply to: Woocommerce errors #364580

    Hi!

    Glad we could help you. Enjoy the theme.

    Cheers!
    Günter

    in reply to: Make content area same width as header menu #364578

    Hey nigellim68!

    Thank you for using our theme.

    In custom.css or Enfold.->Styles->QuickCSS put the following:

    
    .container {
        padding: 0 !important;
    }
    

    Best regards,
    Günter

    in reply to: Less white space #364575

    Hi!

    Glad we could help you. Enjoy the theme.

    Best regards,
    Günter

    in reply to: Reduce height of breadcrumb container #364565

    Hi!

    Glad I could help you.
    Enjoy the theme.

    Regards,
    Günter

    in reply to: [SOLVED] Social icon have disappear #364564

    Hey!

    Thank you for using our theme and thanks for your feedback.

    Feel free to come back with any further inquiries.

    Enjoy the theme.
    Regards,
    Günter

    in reply to: Enable Sticky posts #364041

    Hey kristenangel!

    Thank you for coming back.

    Sticky posts are a bit weird in WP and this is a known problem.

    Maybe this can help you:

    https://kriesi.at/support/topic/sticky-posts-not-working/
    https://kriesi.at/support/topic/functions-php-error/

    Cheers!
    Günter

    in reply to: Ich habe so viele Probleme – Sidebar #364039

    Hey mistral2!

    Danke für die Benützung des Forums.

    Versuche einmal ein leeres Textwidget in das Blog Sidebar widget zu geben, um die Anzeige von Defaults bei leeren Widgets zu unterdrücken.

    Sollte das nichts helfen, wäre ein Link zu der Seite hilfreich.

    Danke.

    Regards,
    Günter

    in reply to: Change font colour on menu button #364037

    Hey makeitbritish!

    Thank you for coming back.

    The menu ID changed.

    Use the following code:

    
    #menu-item-2752 a span{
    color: white;
    }
    

    Regards,
    Günter

    in reply to: How to add margin -top for only large screen. #364033

    Hi idpokute!

    Thank you for using our theme.

    You have to wrap your CSS in a media query like:

    
    @media only screen and (min-width: 1030px) {
         .your_class{
              margin-top:  20px !important;
            }
    }
    

    Put this AFTER the CSS code without media query and adjust the width.

    Regards,
    Günter

    in reply to: Hide Footer on Blog Posts #364032

    Hi rpl_admin!

    Thank you for using our theme.

    To hide the footer on single posts:

    In custom.css or Enfold-> Styles ->QuickCSS put the following:

    
    .single #footer {
        display: none !important;
    }
    

    Best regards,
    Günter

    in reply to: Reduce height of breadcrumb container #364031

    Hi!

    Thank you for coming back.

    Use the following CSS and put after the code above:

    
    @media only screen and (max-width: 767px) {
           .title_container .main-title {
                      visibility: hidden !important;
           }
    }
    

    You can replace the width also with 989 for portrait mobile or 480.

    Regards,
    Günter

    in reply to: Reduce space on top and below of footer #363508

    Hi nigellim68!

    Thank you for using our theme.

    In custom.css or Enfold->Styles->QuickCSS field put the following and adjust the values:

    
    #footer {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    

    Cheers!
    Günter

    in reply to: Reduce height of breadcrumb container #363501

    Hey chantalinkdesign!

    Thank you for using our theme.

    To reduce the title and breadcrumb:

    Reduce the values for padding and you can use negative values for the margin. You can also set min-height to a value like 35px.

    
    #top .title_container .container {
        margin-bottom: 0px !important;
        margin-top: 0px !important;
        min-height: auto !important;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
    }
    

    Put this in custom.css or Enfold->Styles->QuickCSS field.

    To adjust the color section use the following and adjust the values:

    
    .home .container .entry-content-wrapper .custom-color-heading {
        margin-bottom: 0px !important;
        margin-top: 0px !important;
        min-height: auto !important;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
    }
    

    Cheers!
    Günter

    in reply to: CHANGE SEARCH BOX TEXT INPUT #363488

    Hey ezequiel15!

    Thank you for using our theme.

    In custom.css or Enfold->Styles->QuickCSS put the following and adjust the valus:

    
    #top #s,
    .header_color *::-moz-placeholder {
        color: #000 !important;
    }
    
    

    Cheers!
    Günter

    in reply to: Increase space below main menu and bottom of header #363485

    Hi!

    Thank you for using our theme.

    In custom.css or Enfold->Styles->QuickCSS put the following and adjust the value:

    
    
    .main_menu > div {
        height: 55px !important;
    }
    

    Cheers!
    Günter

    in reply to: Sticky posts #362863

    Hey BarkProductions!

    Thank you for using our theme.

    Sticky posts are a bit weird – this is a WP Problem.

    Have a look at: https://kriesi.at/support/topic/functions-php-error/

    Maybe this will help you.

    Cheers!
    Günter

    in reply to: Breadcrumbs and page title question. #362848

    Hey!

    Thank you for using our theme.

    In custom.css or Enfold->Styling->QuickCSS try to pu the following:

    
    .title_container .main-title{
    float: right !important;
    }
    
    .title_container .breadcrumb{
    float: left !important;
    right: auto !important;
    }
    

    Cheers!
    Günter

    in reply to: icon list text – remove all capitals #362845

    Hey GGLNetwork!

    Thank you for coming back.

    Iconlist headers have h4 tag.

    
    h4{
    text-transform: none !important;
    }
    

    To limit changes to iconlist:

    
    .avia-icon-list h4{
    text-transform: none !important;
    }
    
    

    Best regards,
    Günter

    in reply to: How to change the blog font size #362837

    Hi!

    Thank you for coming back.

    To limit the changes to blog only you have to write the following code and change the value:

    
    .blog .entry-content p {
    font-size: 16px;
    }
    
    

    In Enfold -> General Styling at the bottom you find the input field Quick CSS. Put the text above in that field.

    Cheers!
    Günter

    in reply to: Is there any way to add PHP code into a post or page? #362833

    Hi!

    Thank you for coming back.

    You can use shortcodes to insert php inside a page or post, but you should not use them in code blocks.

    How to use and implement shortcodes see: http://codex.wordpress.org/Shortcode_API

    Regards,
    Günter

    Hey!

    Thanks for coming back and the feedback.

    Glad you could fix my bug.

    To add another path simply extend the array $child_path and seperate the paths with “,” like:

    
    array(
          dirname(__FILE__) .”/avia-shortcodes/”,
          "path_2",
          "path_3"
         );
    

    Best regards,
    Günter

    in reply to: Breadcrumbs and page title question. #362227

    Hi heinrichvk!

    Thank you for using our theme.

    Can you give us a link to your site so we can see your design?

    Cheers!
    Günter

    in reply to: Is there any way to add PHP code into a post or page? #362110

    Hey pnacho!

    Thank you for using our theme.

    Have a look at:

    https://kriesi.at/support/topic/codeblock-converts-php-code-into-html-comment-markup/

    You can’t use php codes inside the code block element and shortcodes are not recommended as it might break the theme code.

    Cheers!
    Günter

    Hey website2create!

    Thank you for using our theme.

    You have to tell Enfold to load this file.

    Make sure you have the same directory structrure as in the parent theme.

    In functions.php of the child theme put the following:

    
    //set the child theme folder that contains the modified shortcodes and make sure, it is the first element
    function add_child_shortcode_folder($paths)
    {
        if(! is_array( $paths ) )
        {
    		$paths = array();
        }
    	
    	$child_path = array(dirname(__FILE__) ."/avia-shortcodes/");
            
    	$paths = array_merge($child_path, $paths);
    	return $paths;
    }
    
    add_filter('avia_load_shortcodes','add_child_shortcode_folder', 1000);
    

    Cheers!
    Günter

Viewing 30 posts - 3,211 through 3,240 (of 3,706 total)