Forum Replies Created
-
AuthorPosts
-
Hey Guenni007, thanks for your reply.
The code is from the documentation. I want the header transparent on all pages. So you think the filter needs to bee added too? Like that:
add_action( 'after_setup_theme', 'enfold_customization_product_switch' ); function enfold_customization_product_switch(){ add_filter('avf_builder_elements', 'avf_builder_elements_mod'); } function avf_builder_elements_mod($elements) { $counter = 0; foreach($elements as $element) { if($element['id'] == 'header_transparency') { $elements[$counter]['std'] = 'header_transparent'; } $counter++; } return $elements; } add_filter('avf_header_setting_filter', function($header) { $header['header_transparency'] = 'header_transparency'; $header['header_class'] .= " av_header_transparency"; return $header; }, 10, 1);
Or is your snippet working without the longer code from the documentation?
Hi Ismael,
that is correct but I want to mix (standard) categories and taxonomy entries. How can I do that? Something like that is not working:
function avia_masonry_custom_query( $query ) { $args = array( 'meta_query' => array( 'relation' => 'OR', array( 'post_type' => 'kanal', 'taxonomy' => 'kanal_zuordnung', 'field' => 'id', 'terms' => array('30', '31'), 'operator' => 'NOT IN' ), array( 'post_type' => 'post', 'category__not_in' => '1', ), ), ); $query = array_merge((array)$args, (array)$query); return $query; } add_filter('avia_masonry_entries_query', 'avia_masonry_custom_query');
In the end I could even exclude the whole Custom Post Type, that would be okay. So if I could exclude a certain (standard) category and a certain CPT everything should be fine. Do you have a code snippet for me?
Best regards,
DanielThanks for helping me out, Ismael. You may close this.
Found the place. I added the excerpt there alyready like:
'contents' => 'excerpt_read_more',
How do I add the preview_mode? Like that:
'preview_mode' => 'featured_large',
Or do I miss something?
Hey Ismael, thank you for your information. Will try some things with the header image.
Now back to the archive page image size:
You write you can adjust the thumbnail size in the archive pages by editing the archive.php file directly. I already searched for a function loading the
portfolio
size but did not find it. Where do I find the line to change? The filter you sent is for functions.php but I would like to change the size in the archive.php directly and don’t now where exactly.Thanks for helping me out!
That sounds interesting, Guenni007. Will try that for sure. In an other thread I read an alternative soloution for my atempt. One of them will work for sure. Thanks!
Und viele Grüße nach Bonn.
Thank you. Tweaked the code to my needs. You may close this.
Nice, Yigit, thanks! Did not find this snippet. Works in the way I would like to have it, but I do have two more questions:
• Is it possible to load a term of a custom taxonomy related to the post with this code? What parts should I alter?
• If I add exactly your code to Child Theme functions.php the author gets displayed but the date is missing. Any idea how to show date AND an other term (of a custom taxonomy)?Best regards
You may close this.
And thanks again to Guenni007Thank you! Works as aspected. Learnt a lot from your code.
Dear @guenni007, last question: Do you think it is possible to load the script only for a certain viewport? Let’s say on mobile I would use a normal link (open the entry) and from tablet-size on I would load the script and use the added lightbox. Any ideas?
Why? What is your preference?
Wow! That is beyond my expectations. Thank you!
Should be everything I need. Thread may be closed.
Perfect! Thanks a lot, Guenni007!
Any idea on how to hide the head and footer on those posts? In my case it is a custom post type. Should be possible with a modification to the single.php file of the CPT – what do you think?
Even better would be a script to hide head and footer only if the entry is shown inside an iframe? Do you think that is possible?
Best regards,
DanielThis is the way I would like to have it, yes! But with normal posts (not portfolio entries). And for some reason I would like to use the blog post element (not a masonry). Or can’t it be made with the blog post element?
Thank you for your effort already!
Hey Guenni007,
it is not about the normal blog. I would like to use a ALB blog post element (as in your first link) and display posts of a certain category on a page with the option “blog grid”. If the image or title of the shown entries is clicked the posts should be loaded as iframe in a lightbox, correct. Any ideas?
Thank you for your interest! And thanks Ismael for pointing out that it can be made somehow.
All the best,
DanielSuper fast implementation! I am thrilled. I just installed the new update and deleted my customization before. Runs perfectly as expected. Thanks for the fast support. And an even bigger thank you for the fact that you have already implemented another feature request from me as fast as lightning. You guys are the best.
In this sense I wish you Merry Christmas and see you soon! Feel free to close this thread.
Many greetings,
DanielHey Ismael,
works perfect. Two questions:
• Why do I have to make the change in the parent theme? If I try to put it in /enfold-child/framework/php/function-set-avia-frontend.php the changed file is not loaded, the frontend always uses the version of the parent theme? Is there a solution to make the change in child theme? Or can I add the “playsinline” attribute with a script in functions.php?
• Shouldn’t this be the defalt behaviour if someone is not setting the “Hide video on mobile devices?” to true? If so the user wants the video to play on all devices. Since this is possible it would be nice to have the “playsinline” attribute added in a new update. Or am I wrong?
All the best,
DanielDecember 15, 2021 at 11:46 am in reply to: Show Copyright for images in Standard Editor Blog Posts #1332931No idea how to solve this? I think the information is in the database and could be loaded somehow.
If a user could place a shortcode like
[media_copyright]
on a page and this would display a list in the frontend like
Media name (linked to page where it is used): Copyright information
Media name (linked to page where it is used): Copyright information
Media name (linked to page where it is used): Copyright informationand if an image is used multiple times it has multiple entries in the list.
Something like this would be quite helpful for users in Europe …
Does anyone know whether it is possible to collect a list of all credits specified in the media library on one page via a shortcode or something similar?
December 15, 2021 at 11:37 am in reply to: ALB shortcodes are stripped if element gets opened up in backend #1332929New theme version solved the problem. You may close this thread. Thanks a lot.
December 13, 2021 at 10:14 am in reply to: ALB shortcodes are stripped if element gets opened up in backend #1332541Nice! That looks good. Thank you for the information. I will deactivate the test installation for now, as everything seems to be solved. Even if I don’t quite understand why the behaviour of creating a new tab is different when CET are activated but that is no real problem.
All the best,
DanielDecember 9, 2021 at 9:48 am in reply to: ALB shortcodes are stripped if element gets opened up in backend #1332083Hi Ismael,
That sounds logical at first. Unfortunately, I can’t find this setting anywhere. In the described place under Enfold > Custom Elements I have only the following options:
– Custom Elements Management
– Custom Elements Locked OptionsNo settings for “Custom Elements For Subitems” are possible. Or is that to be set elsewhere? I activated the CET options in the theme settings (not with a code in the functions.php)
And to be honest, this behavior is not that much of a trouble. If necessary, a user could simly delete the content of the tab and write something else. Much more irritating is in my opinion the misbehavior in relation to the ALB shortcodes as described above and seen in the video. Why are they stripped?
What do the developers say about this?
Regards,
DanielDecember 7, 2021 at 12:43 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331832Give me a short notice after updating the theme and I will try myself. Thanks!
December 7, 2021 at 12:41 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331831Here you go:
December 7, 2021 at 9:27 am in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331809Great. And don’t forget the second part of it (that’s the part that made me realize the problem):
Or open a tab and use the magic wand to place an icon in it as a shortcode, save the tab element and leave it. When you go back in and click on the tab where the shortcode was, the tab is empty.
You see the misbehaviour in the video or you can test it on the page. Strangely the error occurs only with ALB-Shortcodes. Other shortcodes don’t get stripped …
Will you give me feedback here if I can delete the staging version of the homepage?
December 6, 2021 at 4:52 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331740Dear Ismael, thank you for your message. As I said, in the live environment the problem is solved. I have completely disabled CET there via the theme settings. Now everything behaves as usual.
On the test environment, the error persists. Just for you, in case you want to recreate the error and solve it for the future.
You write that you can’t reproduce the misbehaviour, but I can with your link. In this context, please note the private link in my post from November 30. There is a video that shows the problem (added the link in private field again). It is about duplicating or creating tabs. And about ALB shortcodes within tabs (or other ALB elements). These are removed when you go into edit mode again.
About your example page: It doesn’t matter if the CET element (the button) is placed on the page or not. If the CET are deactivated in general (via the theme settings), everything is normal, but if they are used -> they are active in the theme, it comes to the misbehavior.
Specifically, go to the page you sent me and click on “New Tab”. Strangely enough, the first tab is duplicated, instead of a new and empty tab is created. Or open a tab and use the magic wand to place an icon in it as a shortcode, save the tab element and leave it. When you go back in and click on the tab where the shortcode was, the tab is empty.
Does that make the problem clearer for you?
As I said, I’ve left the development environment online for now just for you guys to maybe recreate the problem there and fix it in a future update. If you don’t need it (or don’t need it anymore), feel free to let me know and I’ll take it offline. In my live site I don’t use the CET anymore for the time being.
Best regards,
DanielDecember 2, 2021 at 5:47 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331345I have traced down the problem! It’s because of the Custom Element Templates (CET). When they are enabled in the theme settings, the described misbehavior with the shortcodes occurs. If I deactivate the Custom Element Templates everything works as usual and behaves normally.
On the live version of the homepage I will deactivate the CET for now, because I only use it for one element anyway but I will leave the development environment online for now, so maybe you can recreate the problem there and solve it in a future update. The CET is still active in the staging site.
Will you give me feedback here if I can delete the access?
December 2, 2021 at 1:08 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1331293Hey Ismael, is there any forecast until when you can take a look at it? Since the editors of the page are curious when they can edit the ALB-Elements again. Right now they can’t because already included ALB-Shortcodes get stripped while working on the elements – if they are opened and closed. Only if the ALB-Elements are not touched the content stays the same …
I appreciate your support!
Cheers, DanielNovember 30, 2021 at 12:38 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1330986The problem occurs everytime an ALB Shortcode is used inside an ALB Element (for example on pages). And the behaviour of generating new tabs is strange (as mentioned earlier).
Thank you a lot for taking a look!
November 30, 2021 at 12:13 pm in reply to: ALB shortcodes are stripped if element gets opened up in backend #1330982Here we go. Since it is only for development purposes I didn’t copy the > 6 GB of media data from the uploads folder. But you can recreate the problem and see all the settings in the backend.
-
AuthorPosts