Forum Replies Created
-
AuthorPosts
-
February 8, 2021 at 5:40 am in reply to: Shopify "Buy now" button (Javascript code integration) Problem! #1278531
Hi,
Thank you for the info.
In order to load the shopify script, we have to add this snippet in the functions.php file.
/* * add shopify script */ function ava_script_shopify_script(){ ?> <script type="text/javascript"> /*<![CDATA[*/ (function () { window.shopifyOptions = { "product": { "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0", "margin-bottom": "50px" }, "text-align": "left" }, "title": { "font-family": "Lato, sans-serif", "font-size": "30px", "color": "#4e3a5e" }, "button": { "font-family": "Lato, sans-serif", ":hover": { "background-color": "#2395e6" }, "background-color": "#27a5ff", ":focus": { "background-color": "#2395e6" }, "border-radius": "35px", "padding-left": "55px", "padding-right": "55px" }, "price": { "font-family": "Lato, sans-serif", "font-size": "26px", "color": "#a87bc9" }, "compareAt": { "font-family": "Lato, sans-serif", "font-size": "22.099999999999998px", "color": "#a87bc9" }, "unitPrice": { "font-family": "Lato, sans-serif", "font-size": "22.099999999999998px", "color": "#a87bc9" }, "description": { "font-family": "Lato, sans-serif", "font-size": "17px", "color": "#827191" } }, "layout": "horizontal", "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true, "description": true }, "width": "100%", "text": { "button": "Add to cart" }, "googleFonts": [ "Lato" ] }, "productSet": { "styles": { "products": { "@media (min-width: 601px)": { "margin-left": "-20px" } } } }, "modalProduct": { "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true }, "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0px", "margin-bottom": "0px" } }, "button": { "font-family": "Lato, sans-serif", ":hover": { "background-color": "#2395e6" }, "background-color": "#27a5ff", ":focus": { "background-color": "#2395e6" }, "border-radius": "35px", "padding-left": "55px", "padding-right": "55px" } }, "googleFonts": [ "Lato" ], "text": { "button": "Add to cart" } }, "option": {}, "cart": { "styles": { "button": { "font-family": "Lato, sans-serif", ":hover": { "background-color": "#2395e6" }, "background-color": "#27a5ff", ":focus": { "background-color": "#2395e6" }, "border-radius": "35px" }, "title": { "color": "#919191" }, "header": { "color": "#919191" }, "lineItems": { "color": "#919191" }, "subtotalText": { "color": "#919191" }, "subtotal": { "color": "#919191" }, "notice": { "color": "#919191" }, "currency": { "color": "#919191" }, "close": { "color": "#919191", ":hover": { "color": "#919191" } }, "empty": { "color": "#919191" }, "noteDescription": { "color": "#919191" }, "discountText": { "color": "#919191" }, "discountIcon": { "fill": "#919191" }, "discountAmount": { "color": "#919191" }, "cart": { "background-color": "#f9f9f9" }, "footer": { "background-color": "#f9f9f9" } }, "text": { "title": "Shopping Cart", "total": "Subtotal", "button": "Checkout" }, "contents": { "note": true }, "popup": false, "googleFonts": [ "Lato" ] }, "toggle": { "styles": { "toggle": { "font-family": "Lato, sans-serif", "background-color": "#27a5ff", ":hover": { "background-color": "#2395e6" }, ":focus": { "background-color": "#2395e6" } } }, "googleFonts": [ "Lato" ] }, "lineItem": { "styles": { "variantTitle": { "color": "#919191" }, "title": { "color": "#919191" }, "price": { "color": "#919191" }, "fullPrice": { "color": "#919191" }, "discount": { "color": "#919191" }, "discountIcon": { "fill": "#919191" }, "quantity": { "color": "#919191" }, "quantityIncrement": { "color": "#919191", "border-color": "#919191" }, "quantityDecrement": { "color": "#919191", "border-color": "#919191" }, "quantityInput": { "color": "#919191", "border-color": "#919191" } } } }; var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js'; if (window.ShopifyBuy) { if (window.ShopifyBuy.UI) { ShopifyBuyInit(); } else { loadScript(); } } else { loadScript(); } function loadScript() { var script = document.createElement('script'); script.async = true; script.src = scriptURL; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script); script.onload = ShopifyBuyInit; } function ShopifyBuyInit() { var client = ShopifyBuy.buildClient({ domain: 'shop-smileicon-de.myshopify.com', storefrontAccessToken: '2bf601fd5327e67d70751fad741c6fa5', }); document.querySelectorAll('.product-component-shopify').forEach(function(el) { console.log(el) ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent('product', { id: '6147674898616', node: document.getElementById(el.id), moneyFormat: '%E2%82%AC%7B%7Bamount_with_comma_separator%7D%7D', options: window.shopifyOptions, }); }); }); } })(); /*]]>*/ </script> <?php } add_action('wp_footer', 'ava_script_shopify_script', 9999);
And the following code creates the new shortcode.
// shopify button function avs_shopify_button_cb( $atts ) { $param = shortcode_atts( array( 'component' => '', ), $atts ); return "<div class='product-component-shopify' id='product-component-{$param["component"]}'></div>"; } add_shortcode( 'avs_shopify_button', 'avs_shopify_button_cb' );
To add a new shopify button in a page, insert a code or text block, then use this shortcode.
[avs_shopify_button component="1612524419965"]
Just replace the value of the component attribute or parameter with the actual id of the shopify product component.
Best regards,
IsmaelHi,
As recommended by @Guenni007 above, you could use the provided filter to disable the default thumbnails and prevent regeneration of images that were registered by the theme.
// https://kriesi.at/support/topic/media-upload-and-enfolds-thumbnail-sizes/#post-1270140
Best regards,
IsmaelFebruary 8, 2021 at 5:02 am in reply to: Tab Section, individual tab height not showing correctly #1278520Hi,
The draft page is no longer accessible. Did you remove it?
We modified the tab_section.js file and did the changes above. We also deactivated the Performance > File Compression settings to regenerate the scripts and stylesheets. The tab section is now resizing itself again once the transition or the layout of the portfolio grid is complete. Please check the screenshot below.
Screenshot: https://imgur.com/udw1l55
Best regards,
IsmaelHey infonove,
Thank you for the inquiry.
The screenshots above do not exist anymore, maybe expired. Please provide a link to the page containing the image so that we could check it. Are you using a slider, or did you apply the image as background of the color section?
Best regards,
IsmaelHey FayeMcC,
Thank you for the inquiry.
The favicon is showing correctly on our end. Have you tried removing the browser cache on your mobile device, or do a hard refresh? You should also try to check it while you are on incognito mode.
Best regards,
IsmaelHi,
Thank you for the info.
Unfortunately, we are still not able to access the file server using the login account above. It is possible that the FTP account is limited to a certain IP address, and it is also possible that the country where we are trying to access it from is blocked. You may need to ask your hosting provider to check your server or ask them to configure the FTP account properly.
We cannot enable the plugin without access to the file server because we might break the site without any means to revert it back to a working point.
Best regards,
IsmaelFebruary 5, 2021 at 3:46 pm in reply to: Portfolio für bestimmte Seite ohne verlinkung zu single portfolio #1278057Hi,
Glad to know that the script above is working. If you would like to apply it on a specific page, please use the following script instead.
// disable masonry link function ava_script_disable_masonry_link() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' (function($) { if($("body").is(".page-id-31") == false) { return false; } $(".av-masonry-entry").on("click", function(e) { e.preventDefault(); return false; }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_script_disable_masonry_link', 9999);
We are just checking if the body tag contains the class name page-id-31, which contains the ID of the page “Team”.
Best regards,
IsmaelHi,
Hi Ismael, which screenshot of the 4 I sent do you mean?
I was referring to the most recent screenshot, the info at the very end of the console are cut off. You have to wait for the video to end before checking the console. If you do not see the text “YOUTUBE ENDED” in the console after the video ends, it means that the following conditions are not met and so it does not resume or reset the slider.
if (event.data === YT.PlayerState.ENDED)
Best regards,
IsmaelFebruary 5, 2021 at 3:38 pm in reply to: Woocommerce Product image in Avia Builder using wooswatches #1278052Hi,
We just found out that it is the default markup of the product gallery — the images are not linked by default. You have to override the woocommerce\templates\single-product\product-image.php file and add the links manually. For more info on how to override a product template, please check the following documentation.
// https://docs.woocommerce.com/document/template-structure/
We will close this thread for now. Please do not hesitate to open another if you need more help.
Best regards,
IsmaelFebruary 5, 2021 at 3:27 pm in reply to: Create a second shop to display bundle products only #1278047Hey trljackson,
Thank you for the inquiry.
You may have to create a unique category for the bundle products so that they could be displayed separately on another page using the Product Grid element from the builder or a custom product shop template using a custom query. If you chose to use the Product Grid element, just select the new category in the Content > Select Entries > Which Entries? settings.
Best regards,
IsmaelFebruary 5, 2021 at 3:22 pm in reply to: When is ready the update for enfold? ( lot of time with NO update for theme) #1278044Hey marcobe,
Thank you for the inquiry.
The latest version will be available very soon but we do not have an exact date yet. It will contain fixes for the pagination and other issues, and will also include a new template option called Custom Elements, which should allow you to create global elements.
Best regards,
IsmaelFebruary 5, 2021 at 3:08 pm in reply to: How to get Placeholder to correctly output shortcode #1278041Hi,
Thank you for the update.
Are you referring to these shortcodes?
[av_button label='Member Access' icon_select='no' icon='ue800' font='entypo-fontello' link='manually,https://event.webinarjam.com/register/370/lx94nfl8' link_target='' size='medium' position='center' label_display='' title_attr='' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' id='' custom_class='' av_uid='' admin_preview_bg='']
Did you switch to the Visual mode of the text editor before you added the shortcode? Please post the login details in the private field so that we could check the issue properly.
Best regards,
IsmaelHi,
Thank you for the info.
Have you tried applying a height limit to the color section containing the svg image? The svg image should inherit the height of its parent container, so this should work.
.page-id-7062 #av_section_1 { max-height: 50vh; }
To avoid using generic selectors such as the one above (#av_section_1), you could apply a unique custom css class name or ID to the color section element from its Advanced > Developer Settings panel.
Best regards,
IsmaelFebruary 5, 2021 at 2:56 pm in reply to: Events (w/ TheEventsCalendar) listed in blog, but category not showing #1278036Hi,
Sorry for the late response.
1.) Are you referring to the posts meta info? You may need to use this filter in the functions.php file to show the category info of the posts.
function avf_postslider_show_catergories_mod($category) { $category = 'show_business'; // or show_elegant return $category; } add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
2.) The theme does not have a style modification for the plugin’s updated calendar design yet, so you will have to apply your own css modification to change the style of calendar view.
// https://theeventscalendar.com/knowledgebase/k/styling-month-view/
Best regards,
IsmaelHi,
Glad it solved the issue.
And regarding the text alignment and the space between the avatar and the name, please try to use this css code.
.bbp-author-link.alignnone { display: inline !important; } .bbp-author-avatar { margin-bottom: 20px; display: block; }
Best regards,
IsmaelHi,
Did you actually try the most recent css code that we recommended above? This is what we get when we remove the minimum height of the content header and apply the above css code.
Screenshot: https://imgur.com/1UkJZDb
You may need to disable the file compression after adding the css modification.
div .products .product { margin: 0 1% 10% 0 !important; }
Thank you for your patience.
Best regards,
IsmaelHi,
Yes, you are right. Looks like the switch only works once a particular size has been selected. Would it help if we preselect a default size on page load? You can use this script in the functions.php file to do that.
// preselect product size function ava_script_preselect_product_size() { if ( wp_script_is( 'avia-default', 'registered' ) ) { wp_add_inline_script( 'avia-default', ' (function($) { $(document).ready(function() { $(".rtwpvs-term.rtwpvs-button-term.button-variable-term-m").trigger("click"); }); })(jQuery); '); } } add_action( 'wp_enqueue_scripts', 'ava_script_preselect_product_size', 9999);
The script above activates the medium size button on page load.
Best regards,
IsmaelHi,
Thank you for the screenshot.
Looks like you have copied the code from your email. Please make sure to copy the code directly from this forum to avoid conversion or encoding of symbols as shown in the screenshot that you have provided above. Let us know if that helps.
Best regards,
IsmaelHi,
Thank you for the update.
Would you mind providing access to one of the sites so that we could check the issue properly? By the looks of it, the Advance Layout Builder (ALB) is not active in the page above. Are you sure that you switched the editor to ALB?
Best regards,
IsmaelHi,
Thank you for the info.
We can now access the file server properly. We just noticed that there is a minor syntax error in the code that we provided.
$file = AVIA_EVENT_PATH . "views/" . $name[0] . '.php';
This should be..
$found_file = AVIA_EVENT_PATH . "views/" . $name[0] . '.php';
We corrected it and the single event page seems to be displaying properly now.
Best regards,
IsmaelFebruary 5, 2021 at 1:44 pm in reply to: Shortcode problem – It displays outside the place of placement #1277990Hi,
Thank you for following up.
There is obviously an incompatibility issue between the theme and the plugin since it is not working as expected, but what we are trying to point out is that, it is not a problem with how the code block renders the shortcode. Again, you could try a default shortcode from WP or a shortcode from a different plugin and it will work just fine, so the issue is how the plugin renders its shortcode. Unfortunately, we do not know how the plugin works and we are not familiar with its code, so it would be a huge help if the plugin developers could provide additional insights as to how the plugin render its shortcode, what function it is currently using or which filter or hook it is utilizing to render the output of the shortcode.
Best regards,
IsmaelHi,
Thank you for the update.
Would you mind providing a screenshot or a mockup of the blog layout that you want to create? Have you tried selecting a different posts layout in the Enfold > Blog Layout > Blog Layout settings? You may also have to adjust the Enfold > Blog Layout > Blog Style.
Best regards,
IsmaelFebruary 5, 2021 at 1:32 pm in reply to: Paralax option blows picture up while extremely wide pic doesn't fill whole wndw #1277984Hi,
Thank you for the update.
This is what we get when we manually adjust the background position using the recommended css code above.
Screenshot: https://imgur.com/3QczJAw
As you may noticed, the children are now visible in the color section area.
Now if you want to adjust the actual height of the parallax container like the screenshot below..
Screenshot: https://imgur.com/hcOjW3l
.., please use this css code.
@media only screen and (max-width: 767px) { .home #av_section_1 .av-parallax.active-parallax { height: 100% !important; top: 0 !important; transform: translate3d(0px, 0, 0px) !important; } }
Best regards,
IsmaelFebruary 5, 2021 at 1:24 pm in reply to: Shopify "Buy now" button (Javascript code integration) Problem! #1277980Hi,
Thank you for the update.
We recommend creating a custom shortcode for the shopify embed code in the functions.php file so that you do not have to add the embed code directly in the builder. A custom shortcode should look something like this.
//[foobar] function foobar_func( $atts ){ return "foo and bar"; } add_shortcode( 'foobar', 'foobar_func' );
You can now use the shortcode [foobar] in a text or code block and it will render the text “foo and bar” in the front end.
Would you mind providing an example of the shopify code?
Best regards,
IsmaelHi,
For some reason, the modification above is not working as expected. Would you mind removing the header.php file template in the child theme? We noticed that the alternate menu is being included in the site when it is not supposed to.
Best regards,
IsmaelHey chr_thiesen,
Thank you for the inquiry.
The videos are not playing automatically on page load anymore because of the privacy options, users have to manually accept or toggle the privacy buttons in order to enable external services including youtube videos, maps and other third party scripts that requires or uses cookies. If you want to enable autoplay even when the privacy options are enabled, you have to set the Enfold > Privacy & Cookies > Cookie Handling to the first or second option.
Best regards,
IsmaelFebruary 4, 2021 at 9:31 am in reply to: how setting pagination without "?avia-element-paging=2" #1277638Hey marcobe,
Thank you for the inquiry.
Have you tried updating the theme to the latest version (4.7.6.4)? The latest version should contain the fix for the pagination. If the latest version of the theme is already installed and the pagination is still not working as it should, please try the solution provided in the following thread.
// https://kriesi.at/support/topic/the-grid-with-products-does-not-work-pagination/#post-1254673
// https://kriesi.at/support/topic/enfold-blog-posts-and-magazine-navigation-link-to-previous-page-not-working/#post-1264664Best regards,
IsmaelHey B2LFilms,
Thank you for the inquiry.
Have you tried using the Layer Slider plugin to create a custom slider with different transitions? You could also add a custom image to the theme’s Page Preloading option located in the Enfold > Theme Options panel. It may not look or behave exactly as the examples above, but you should be able to tweak the slider transitions to get almost the same effect.
Best regards,
IsmaelHey Talker77,
Thank you for the inquiry.
The advance layout builder is automatically disabled on the base shop page, but you can use the following snippet in the functions.php file to enable it back.
add_theme_support( 'avia_custom_shop_page' );
However, please not that enabling this may cause default features such as the product sorting or when using a default product widget to not work correctly in the shop page. For more info, please check the documentation.
// https://kriesi.at/documentation/enfold/woocommerce-shop/#custom-woocommerce-shop-overview-with-advanced-layout-editor
Best regards,
IsmaelHey Frits,
Thank you for the inquiry.
The masonry element does not have that option by default, so you might need to use another extension or plugin, which also mean that you have to use a different template or posts style. Please check one of the following extensions below.
// https://wordpress.org/plugins/search-filter/
// https://wordpress.org/plugins/beautiful-taxonomy-filters/Best regards,
Ismael -
AuthorPosts