Forum Replies Created
-
AuthorPosts
-
http://touchsoftworks.com/client/ulferts/product/demo/
I want the slider on the bottom to show the product name when mouseover as overlay (like normal image). Is this possible?
Thanks Elliott. But I means in the popup of the enfold text block editor, not in the default wordpress editor.
ok. thanks,
sorry…I don’t really know how to use the function. Can this apply to product? and can I apply multiple sort? (like sort by featured desc first and title name asc second)
Thanks,
AlexI think I doing some similar things. It works normally for button. But it doesn’t work on tab for desktop only.
oops. I found the solution. Add the following to the custom css:
#mobile-advanced{
transform: scale(1);
}ok. I got it. Thanks!
but I can only have one template-builder.php for all pages or posts in child theme, right?
I want to make 2 homepage originally. One is for logged user and the other one is for visitor. I want to make a auto redirect if visitor is trying to view the logged homepage and also redirect the logged user from visitor homepage to logged homepage.
I found a plugin to add php code as a shortcode to the Enfold text element to handle this case. However, I still interested to see if I can do it in 2 template files for both homepage with the Enfold Advanced Layout editor.
Thanks!
Anyone can help?
Thanks,
AlexIt works! Thanks!
- This reply was modified 9 years, 3 months ago by boscotwcheung.
Thanks
Thanks,
ok. Thanks.
No. It doesn’t work. I tried to create an empty loop-index.php into child theme and also tried to delete all the code inside loop-index.php in parent theme. Both are not working. It still shows posts content as normal.
ok. Thanks. Found a plugin to do a similar things
https://wordpress.org/plugins/kiwi-logo-carousel/- This reply was modified 9 years, 3 months ago by boscotwcheung.
Anyone can help? Even I update the single.php in the parent theme. It doesn’t seems to be loaded at all. Which is the template file for a normal post layout?
Thanks,
AlexI tried to add single.php and archive.php into my child theme. However, both files didn’t loaded for post.
I also tried the custom post template plugin. I can see there is a widget title “WP Post Template” in the wp admin page. But there is nothing in it.
I finally made it.
<?php $print_og = true; if(is_product() && $print_og){ // get featured image url $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); // get post content $content_post = get_post($post->ID); $product_content = $content_post->post_content; // extract the tab content $pos1 = strpos($product_content, "[av_tab title='DESCRIPTION'"); $product_content = substr($product_content, $pos1); $pos2 = strpos($product_content, "[/av_tab]"); $len1 = strlen($product_content) - $pos2; $len1 = strlen($product_content) - $len1; $product_content = substr($product_content, 0, $len1); $pos3 = strpos($product_content, "]") + 1; $product_content = substr($product_content, $pos3); // reformat the content: remove newline, html tag, double quote, etc $product_content = str_replace('"', "'", $product_content); $product_content = trim(preg_replace( "/\s+/", " ", $product_content)); $product_content = strip_tags($product_content); ?> <!-- Custom Facebook OG Data Added By Alex --> <meta property="og:title" content="<?php echo get_the_title(); ?>" /> <meta property="og:type" content="product" /> <meta property="og:url" content="<?php echo get_permalink(); ?>" /> <meta property="og:image" content="<?php echo $feat_image; ?>" /> <meta property="og:site_name" content="<?php echo get_bloginfo('name'); ?>" /> <meta property="og:description" content="<?php echo $product_content; ?>" /> <!-- End of custom OG Data --> <? } ?>
Sorry. I made a stupid mistake. I installed a coming soon plugin and enabled it. It made facebook not able to fetch the OG meta data as facebook can not login to the site.
Thanks! it works.
This reply has been marked as private.ok. Thanks.
thx
- This reply was modified 9 years, 5 months ago by boscotwcheung.
I found I can copy the woocommerce template files into child theme
See http://docs.woothemes.com/document/template-structure/
But I still want to see if there is a way to use the avia layout editor to update the category page layout.
- This reply was modified 9 years, 5 months ago by boscotwcheung.
I found the mobile menu is a javascript clone from the main menu on “enfold/js/avia.js” function avia_responsive_menu().
I need to add some hidden items on php and do the same clone on javascript and append to the mobile menu. If I want this JS in child theme, should I just create the same js file on child theme?
Thanks. It works!
-
AuthorPosts