Forum Replies Created

Viewing 30 posts - 91 through 120 (of 126 total)
  • Author
    Posts
  • Dear 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,
    Daniel

    I 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?

    Hey 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, Daniel

    The 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!

    Here 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.

    I will set up a development version and give you the login credentials when I am ready. Thanks for your help!

    Oh, with “other pages” I meant homepages. I have 40+ homepages/websites with your theme. The problem only occurs on one of them. And I even have a nearly identical homepage to the one with the problem, and this one works fine as well. Attached you find links.

    You think a downgrade makes no sense? So I would have to clone the project …

    It occurs on every page. Not only on one of the pages. Everytime ALB is used and it is a shortcode inside an editable text field inside an ALB Element (not in the ALB Text-Element). For example in a Tab- or Accordeon-Element.

    Since it is a shop that is live I don’t know how we could manage it that it is save for you to deactivate plugins? I actually did it twice without success …

    But I think I can give you access to the website und you can create a page and see the behaviour for yourself.

    Would that be of any help?

    Hi Ismael,

    I do have some modifications going on but even if I delete them and flush the cache the problem remains. And as I said I do have a nearly identical website on the same server package and it works without any problems.

    What do you mean by re-create? The whole website? It is a large project. Gave you the link in the first post.

    Do you see any chance that it could be a soloution to downgrade the theme? I simply don’t know where the error could come from as it remains even if I deactivate everything and am left with only WP and the theme. Can’t recall if it worked in the last version of the theme. It was working some months ago for sure. And in the other installation on the server ist is working with the same settings, plugins and so on. Really strange.

    Could that be of any reward?

    Best regards,
    Daniel

    Hey Ismael, thanks for this idea. Sadly it did not work.

    The problem is, that I can’t reproduce it either. It occurs only on one of my other pages (and I have quite a lot). Even on another page (same server, same directory, same version of WP and Enfold) everything works as expected.

    As I said I have already checked it in several browsers. Chaches emptied. Reinstalled the theme. Plugins all deactivated. Deleted all codes from functions.php. Removed customizations from the .htacces. However, the problem always remains. I have the latest versions of all plugins and WP and theme installed and I really don’t know what to do. There is no combination of settings that brings back the normal behaviour …

    What can I do next?

    Hopeful greetings,
    Daniel

    in reply to: Please tell us what is in 4.8.7.1 #1327657

    Works like charm. Thanks a lot!

    in reply to: Please tell us what is in 4.8.7.1 #1327601

    How is the filter “avf_no_inline_svg” supposed to work? Looked in the repository and did not find an example. What are we supposed to write in the functions.php to supress the inline svg of the logo?

    in reply to: Automate the fullwidth slider slide overlay picture #1326851

    Pefect, I just added the size and everything works like charm:

    $config["content"][$counter]['attr']['overlay_custom_pattern'] = wp_get_attachment_image_url($slider['attr']["id"], $size = 'full');

    You may close this. Thanks for your help!

    • This reply was modified 3 years, 4 months ago by spooniverse.
    in reply to: Automate the fullwidth slider slide overlay picture #1326684

    Ismael, you are the man! Thanks a lot. That is exactly what I was searching for. I changed the opacity to 1, thanks for the line in the code. How could I set the size of the linked overlay picture to original or ‘large’? Right now only the thumbnail (80×80) is loaded. Can I add a line for the size like that:

    $config["content"][$counter]['attr']['overlay_size'] = 'large';

    Or do I have to add something to the last line where the attachment is loaded?
    All the best, Daniel

    in reply to: Automate the fullwidth slider slide overlay picture #1326624

    Hi Ismael,
    Thank you for your prompt reply. I don’t mean the color, that would certainly be far too complex and, on the other hand, it wouldn’t be the effect I would want to achieve.

    It’s indeed about the overlay, you can define a color, as you said, but it is also possible to select a pattern or upload an image that will be used as an overlay. And that’s exactly what I would like to do, just automatically. In HTML an element is added to the slide with the picture as overlay and I would then adapt this later with CSS.

    I have already tested the CSS adaptation (see link), it works wonderfully. I selected the image as an overlay by hand. But having to select that all the time all over the page would of course be a bit annoying. Do you have any idea?

    All the best, Daniel

    • This reply was modified 3 years, 4 months ago by spooniverse.
    in reply to: Show only blog posts of one month #1324934

    Thanks! I am using your theme for quite some years and a lot of cusomters by now. Had the need for this option many times, found some workarounds but a real solution would be way better. Keep looking forward to spot it in the changelog someday in the future.

    You may close this for now. Kind regards, Daniel

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1324695

    Does anyone know whether it is possible to collect a list of all picture credits specified in the media library on one page via a shortcode or something similar? Maybe this could be an other way to solve my problem …

    in reply to: Show only blog posts of one month #1324693

    Thank you! I could have come up with that myself. Thanks for the links. But maybe it would also be an idea to incorporate such a solution in the future. With startdate you would only have to be able to specify a period instead of a specific date. Can I make a feature request for this somewhere?

    in reply to: Show only blog posts of one month #1324568

    Hi Ismael,
    thanks for your fast response. Wouldn’t anything like that affect the whole blog? I would like to set it only on one page for a certain Blog Post Element. Is this possible with the given example?
    All the best,
    Daniel

    in reply to: Sort Blog Post Element by "ACF" Advanced Custom Field #1315872

    Hi Ismael,

    thanks for the fast response and sorry for the late reply. So where exactly would I have to place the code? My field in ACF is called “last-name”, where would I have to call it? Inside the code above? This is in my functions.php at the moment.

    Big thanks for any advice!
    Cheers, Daniel

    in reply to: Hosting fonts with FTP #1308054

    Dear Ismael,
    thanks for pointing me in the right direction. In the mentioned file I realized that the fonts get extracted in a folder called ‘avia_fonts’. The zip-archive doesn’t need to remain in the library and the self hosted fonts are working nevertheless. And that is everything I wanted to have. I can delete the zip-archive and everything will still look fine. Thanks!
    All the best, Daniel

    in reply to: Block the Code Block Element #1306209

    I would love to get a ready and useable solution but I can understand why Ismael says it is beyond the scope of support. If there is no additional info you may close. Thanks for your message.

    in reply to: Block the Code Block Element #1306149

    Thanks Ismael!

    in reply to: Block the Code Block Element #1304914

    Hi Ismael, thanks for the quick response! What exactly do you mean by “not out of the box”? Sounds as if there is a theoretical way? Could you possibly point me in a direction?

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1294046

    That is true, Guenni. Thanks for your advice. I want to use the information from the copyright field in the standard WordPress text editor also, not only in avia layout architect. Therefore I need to load the copyright information from the field inserted by Enfold into a standard editor blog post. Basically that is working with Nikkos code (thanks!) but it is not dynamic (see post #1289982 above). Any ideas?

    All the best, Daniel

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1290779

    For sure, Guenni, nor problem: https://bavotasan.com/2012/add-a-copyright-field-to-the-media-uploader-in-wordpress/. What do you think? Any suggestions?

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1290445

    Hi Nikko,
    Thanks for your reply. I found some links online that seemed to offer a solution for this problem. Isn’t the link in private about basically the same thing I want to achieve?
    Best regards,
    Daniel

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1290056

    Hi Nikko,

    I will try to find a good solution. But since the copyright is implemented through Enfold I would have to know which selector I have to use to call the copyright field content from an image with added copyright information.

    In your code I found:

    _avia_attachment_copyright

    Is this where the copyright information is saved?

    Could I use something like that:

    function get_image_copyright( $attachment_id = null ) {
    	$attachment_id = attachment_url_to_postid( $image_url );
    	if ( $attachment_id )
    		return get_post_meta( $attachment_id, '_avia_attachment_copyright', true );
    }

    Does that trigger the wanted information? If yes I only need a hint where to place a function to show it for every image in the blog.

    Something like:

    echo get_image_copyright();

    What do you think?

    All the best,
    Daniel

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1289982

    Hey Nikko,

    thanks for the code. I made some adjustments and it kind of works, but it’s not really convenient. I invested several hours to automatically place the copyright line with the image in the text, depending on the alignment of the image in the text flow.

    add_filter('get_image_tag', function($html, $id, $alt, $title, $align, $size) {
    	$copyright_text = get_post_meta( $id, '_avia_attachment_copyright', true );
    	if ($copyright_text) {
    		$image = $html;
    		$html = '<figure class="copyright-image-wrapper">' . $image;
    		$html .= '<p class="my-copyright">' . $copyright_text . '</p>';
    		$html .= '</figure>';
    	}
    	return $html;
    }, 10, 6);
    
    function copyright_textfluss(){
        ?>
        <script>
    		jQuery(document).ready(function($) {
    			$('.copyright-image-wrapper:has(.alignleft)').addClass('alignleft');
    			$('.copyright-image-wrapper:has(.aligncenter)').addClass('aligncenter');
    			$('.copyright-image-wrapper:has(.alignright)').addClass('alignright');
    		});
    	 </script>
        <?php
    }
    add_action('wp_head', 'copyright_textfluss'); 

    But there are still two problems:

    • All the html-markup stays in the blog entry if a picture is deleted. This is annoying and therefore not a really nice solution …
    • The copyright-information is simply copied into the text, there is no connection to the database. If there are changes to the copyright-information in the media library it won’t reflect in the blog.

    In the theme image-element it adds a snippet to the shortcode like [copyright=’icon-reveal’]. Couldn’t something like that also be implemented for the standard editor?

    Hope you have a good idea!

    in reply to: Show Copyright for images in Standard Editor Blog Posts #1289578

    Dear Nikko,

    Thank you for your answer. Since the data is saved in the database, it should also be able use it in the standard editor. There are even instructions on the Internet for this, but they refer to a selfmade copyright field (see link) but the field is already given by your theme.

    In the meantime I found a post from Ismael, unfortunately I don’t quite understand the explanation since it offers possibilities and not one single solution. It seems to be about exactly the issue that I am facing: https://kriesi.at/support/topic/copyright-images-2/#post-1228898

    Therefore I believe there is an option for this and would be happy to receive a brief explanation or instructions. Thank you!

Viewing 30 posts - 91 through 120 (of 126 total)