Forum Replies Created
-
AuthorPosts
-
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ünterHey!
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ünterHi!
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ünterHey 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ünterHey 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ünterHey nigellim68!
Thank you for using our theme.
In custom.css or Enfold.->Styles->QuickCSS put the following:
.container { padding: 0 !important; }
Best regards,
GünterHey!
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ünterHey 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ünterHey 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ünterHey makeitbritish!
Thank you for coming back.
The menu ID changed.
Use the following code:
#menu-item-2752 a span{ color: white; }
Regards,
GünterHi 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ünterHi 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ünterHi!
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ünterHi 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ünterHey 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ünterHey 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ünterDecember 5, 2014 at 10:47 am in reply to: Increase space below main menu and bottom of header #363485Hi!
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ünterHey 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ünterHey!
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ünterHey 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ünterHi!
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ünterDecember 4, 2014 at 1:41 pm in reply to: Is there any way to add PHP code into a post or page? #362833Hi!
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ünterDecember 3, 2014 at 4:49 pm in reply to: Child theme – using magazine.php doesn't take over partent theme's magazine.php #362229Hey!
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ünterHi heinrichvk!
Thank you for using our theme.
Can you give us a link to your site so we can see your design?
Cheers!
GünterDecember 3, 2014 at 2:31 pm in reply to: Is there any way to add PHP code into a post or page? #362110Hey 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ünterDecember 3, 2014 at 2:11 pm in reply to: Child theme – using magazine.php doesn't take over partent theme's magazine.php #362102Hey 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 -
AuthorPosts