Forum Replies Created
-
AuthorPosts
-
September 27, 2016 at 12:21 pm in reply to: Bad logo resizing with a message of onload="pagespeed.CriticalImages… #692160
I am going to give you access to the web administration panel
September 27, 2016 at 10:55 am in reply to: Customize archive widget code for filtring by year and by category #692113Sorry Andy, but the idea was to manage the blog section with two different main categories: 1) downloadable documents and 2) standard news posts. However, I found that the best solution was to manage downloadable files with a dedicated plugin, i.e. WP Download Manager.
I hence solved my problem
September 13, 2016 at 12:20 pm in reply to: Enfold 3.7 and Woocommerce 2.6 incompatibility issue: zoomed pictures in sliders #685678Hi Rikard, I just found which was the problem! Among the installed plugins I had Woocommerce Advanced Shipping that was getting in conflict with the new WC shipping tables!
Sorry for having bothered you. Thanks for your kindness
You can set this topic as solved
Elena
ps I love your theme!!
September 13, 2016 at 12:02 pm in reply to: Enfold 3.7 and Woocommerce 2.6 incompatibility issue: zoomed pictures in sliders #685657Hi Rikard, excuse me but not email notification arrived for your msg, thus I am late in asnwering to you.
I made a trial on a local installation of my website. I could try to do the entire process online (the website I am working on is in a test folder) and then give you access there. However I realized that now on my local installation I even cannot enter the administration panel. Below the warnings that appear.
Hence you even wouldn’t be able to get in..
Have you any other idea on how to soldve it?Thanks
Elena
Warning: Declaration of WAS_Advanced_Shipping_Method::calculate_shipping($package) should be compatible with WC_Shipping_Method::calculate_shipping($package = Array) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php on line 371
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-login.php on line 402
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-login.php on line 415
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-includes/pluggable.php on line 892
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-includes/pluggable.php on line 893
Warning: Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-content/plugins/woocommerce-advanced-shipping/includes/class-was-method.php:371) in /Applications/MAMP/htdocs/whalesanddolphins.tethys.org/wp-includes/pluggable.php on line 894
Hello there, excuse me but I found also the solution to the last issue. Actually in the shortcode php code the $loop variable was looking for the english name of the product category! Jus added a condition “or” to add the translated category name and now it works perfectly.
Hence, just for the information to other users, in order to work smoothly with woocommerce custom layout products and wpml I simply changed the translations settings in WPML Woocommerce Multilingual
woocommerce multilingual > settings> native woocommerce product editing screen => although this is not recommended it permits to edit each single product inthe translated version from its page via avia layout builder.
Consider also that Name Your Product must be checked again in each product in the translated page!
You can close the topic
Thanks and sorry for the disturb
Ok I solved more or less all the issues axcept one. First I work with the woocommerce multilingual settings as stated above. This give me the possibility of opening the product in each language from teh standard avia layout builder of Enfold. In this way I can check all settings (example I found that in the automatic copy the Name Your Price Option was not set and that’s why it didn’t appear in the front end).
I downloaded a wpml-config.xml file that I copied in my child theme and the menu now has the same color taken from my custom css style sheet.
However the custom shortcodes don’t work. They appear in the avia layout builder in the administrative panel (while editing the product), but nothing appears in the front-end. It is like the php function I wrote is not working in the front end translated page.
The code is the following… maybe I should add something the php file.
It takes takes the formatted name from each variation of the product (which are cruise dates) and it extrapolates the variation name and its stock availability (= places available in each cruise date).
<?php if( !class_exists( 'woocommerce' ) ) { add_shortcode('csr_calendar_button', 'avia_please_install_woo'); return; } if ( !class_exists( 'avia_csr_calendar_button' ) ) { class avia_csr_calendar_button extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['name'] = __('CSR Calendar', 'avia_framework' ); $this->config['tab'] = __('Plugin Additions', 'avia_framework' ); $this->config['icon'] = AviaBuilder::$path['imagesURL']."sc-button.png"; $this->config['order'] = 23; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'csr_calendar_button'; $this->config['tooltip'] = __('Display the "CSR Calendar" button for the current product', 'avia_framework' ); $this->config['drag-level'] = 3; $this->config['tinyMCE'] = array('disable' => "true"); $this->config['posttype'] = array('product',__('This element can only be used on single product pages','avia_framework')); } /** * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className * * * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_element($params) { $params['innerHtml'] = "<img src='".$this->config['icon']."' title='".$this->config['name']."' />"; $params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>"; $params['content'] = NULL; //remove to allow content elements return $params; } /** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") { $output = ""; $meta['el_class']; global $woocommerce, $product; if(!is_object($woocommerce) || !is_object($woocommerce->query) || empty($product)) return; // $product = wc_get_product(); $output .= "<div class='av-woo-calendar-button ".$meta['el_class']."'>"; ob_start();?> <table cellspacing="0" cellpadding="2"> <thead> <tr> <th scope="col" style="text-align:left; background-color:rgba(255,255,255,1); vertical-align:middle;"><?php _e('Cruise', 'woothemes'); ?></th> <th scope="col" style="text-align:center;background-color:rgba(255,255,255,1);"><?php _e('Places<br/>available', 'woothemes'); ?></th> </tr> </thead> <tbody> <?php $args = array( 'post_type' => 'product_variation', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC', 'meta_query' => array( array( 'key' => '_stock', 'value' => array('', false, null), 'compare' => 'NOT IN' ) ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $product = new WC_Product_Variation( $loop->post->ID ); if (get_the_title( $loop->post->post_parent ) == 'CSR Expeditions Payment') { $variation_formatted_name = $product->get_formatted_name(); $variation_name_array = explode("–", $variation_formatted_name); $variation_name = $variation_name_array[2]; $variation_price = $variation_name_array[3]; $variation_sku = $variation_name_array[0]; $variation_name_only = explode(":", $variation_name); $variation_name_only = $variation_name_only[1]; ?> <tr> <td><?php echo $variation_name_only ."–" . $variation_price; ?></td> <?php if (intval ($product->stock) >0) { ?> <td style="text-align:center; font-size: 13px; background-color:#70C940; color:rgba(255,255,255,1);"><?php echo intval ($product->stock); ?></td> <?php } else { ?> <td style="text-align:center; font-size: 13px; background-color:#D11E1B;color:rgba(255,255,255,1);"> <?php echo intval ($product->stock); ?></td> <?php } ?> </tr> <?php } endwhile; ?> </tbody> </table> <?php $output .= ob_get_clean(); $output .= "</div>"; return $output; } } }Just to update you in my progresses: I tried to change on woocommerce multilingual > settings> native woo commerce product editing screen (instead of wpm translation editor). Now the product appears more or less like it should. However the custom html code doesn’t appear as well as the avia-layout shortcode that I created to show the calendar.
Moreover I noticed that for those products that use the Woocommerce Name Your Price plugin the field for writing the price doesn’t show up.
Another thing is that the menu font color (which was ovrewritten a in style.css in my child theme) appears as set in the Theme options: i.e. it doesn’t get information from my css.
I guess I lost some passage to make the full theme translatable and thus the informations stored in my child theme (css sheets and custom shortcodes) are not loaded in the italian version
Any suggestion?
Thanks
Elena
-
This reply was modified 9 years, 8 months ago by
elenapoliti.
Hello, while waiting for your answer I tried again the installation of wpml and right now it seems everything ok. I mean, I translated the home page and the blog page. Fine.
However, before translating the rest of the pages, I tried to to translate the Woocommerce section. Here I found a major problem. First with woocommerce multilingual plugin I did translate categories and attributes. After that I did translate the products. However here comes the problem. I created each product page with avia layout builder and in the orginal language (english) everything was fine. Now the translated products show the default woocommerce product appearance above my personal layout. Moreover, se html code that I wrote and included (the calendar with places availability below the add to cart button) does not appear anymore.
I include two screenshots. Let me know if you need to log in the website since I am working on a local machine. Right now the NOT translated web site is available at http://whalesanddolphins.tethys.org/test/product/csr-expeditions-payment/
I prefer to do the tests on a local machine before substituting the web site online.Please let me know as it is urgent
Thank you very muchHi IsmaelI just checked out on my site. Strangely, the map does now work with the online site, but still doesn’t work on my local site (via Mamp).
I say strangely, since it has always worked even in local. However, what is important is that it is visible when online
Elena
No news from the Kriesi staff?
Hi everybody same problem with Google Maps here…
Thanks Rikard, I am working on a local machine. Today I should be able to put the test online and give you a link. In the meanhile I found a solution, but I still need your help. Hence, if you don’t mind, I get back to you later.
Best
elenaHi Ismael, yes I did copy it with the same folder structure. I did it with other themes in the past and it worked perfectly. Strange, this doesn’t work with enfold. It’s a kind of bizarre problem… seems so easy but I don’t get out of it!
You are right: it was so simple! Thank you! Do you have btw any suggestion on how to override some woocommerce templates (such as e.g. the form-shipping.php) instead? I tried to save a modified copy in a woocommerce subfolder within my child theme but it doesn’t work.
Any suggestion?
Hi Ismael I tried to use the function get_formatted_name, but it was giving the whole bunch of data formatted ina string. I just wanted the name of the variation, and in order to avoid overriding the original function I preferred creating a new one.
Can you suggest me wherelse I can save the file with the function so that it works, instead of leaving it in the original WC folder? I have the same problem also with one modified template of woocommerce. It doesn’t work if saved in my child theme.
Thanks
Elenayes thanks
Well it worked with another theme which is older than yours. I guess that I should work somewhere on your config.php for woocommerce, but really don’t know where.
It doesn’t matter. I will keep the modified files in a backup folder and when WC is updated I will substitute the new files with my custom files
Yes I checked it out thank you. But that is not the case. My child theme works perfectly and my problem doesn’t relate to page templates or style sheet, but only to woocommerce files. I already managed with other themes to override woocommerce files by copying them in the child theme folder in the proper directory as reported in this post https://docs.woothemes.com/document/template-structure/
Unfortunately this time it doesn’t work
Sorry Ismael could you please hide the login details I sent to you? I wrongly forgot to write them as a private content
Thank you
Hi Ismael, here I am.
To see how the code works please refer to the following link
As I was telling you, the csr-expeditions is the product with the variations that correspond to different date cruises. I added also gravity form to allow the possibility of adding the names of the participants if they are > 1. Just below the form I added the calendar that I described above
These where my steps:
1) added the new shortcodes in the child theme folder
2) added the new wc-class to the class-wc-product-variation.php file which STILL is in the woocommerce folderActually my problem is where I can save the class-wc-product-variation.php file in my child theme in order to keep it even if I update woocommerce. I had the same issue with another file of woocommerce that I modified (the form-shipping.php) and it doesn’t work if saved in my child- theme folder.
Do you have any suggestion?Hi Rikard, actually I still not solved the problem of woocommerce overriding. It seems that I should copy the WC modified files in my child theme folder, in a path like child-teme/woocommerce/templates/checkout, but it doesn’t work like that.
I worked on modifying another file of woocommerce for my purposes (see wrong answer above) and still have the same problem…
Elena
Hi sorry, but while waiting for your answer I went thinking on about the solution and I imagine I got it! Since it may serve for others, I’d like to report here the procedure I adopted. Maybe you can also answer to a question (see at the bottom of the codes)
First of all I created a new function on the file class-wc-product-variation.php that is found in woocommerce/includes/
The function is more or less the modified copy of the get_formatted_name at line 741 of the file. My new function is called get_formatted_variations_name and returns a string which gives the title of the variation and the price. Here it is:STEP 1
/** * Get product variation name. Used within admin. * * @return string Formatted product name, including attributes and price */ public function get_formatted_variations_name() { if ( $this->get_sku() ) { $identifier = $this->get_sku(); } else { $identifier = ''; } $formatted_attributes = $this->get_formatted_variation_attributes( true ); $variation_name = substr($formatted_attributes, 27); $extra_data = $variation_name . ' – ' . wc_price( $this->get_price() ); return sprintf( __( '%s', 'woocommerce' ), $extra_data ); }STEP 2)
I created a new avia element called “calendar’ in which I call the function stated before, together with the stock data in a loop, in order to extract all variation for a determined product. In my case the product was called “CSR Expeditions Payment” and the variations are the dates of the cruises. The $loop passes all the products, and before outputting the data I need, I filter the product of interest (in this case CSR Expeditions Payment).<?php if( !class_exists( 'woocommerce' ) ) { add_shortcode('csr_calendar_button', 'avia_please_install_woo'); return; } if ( !class_exists( 'avia_csr_calendar_button' ) ) { class avia_csr_calendar_button extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['name'] = __('CSR Calendar', 'avia_framework' ); $this->config['tab'] = __('Plugin Additions', 'avia_framework' ); $this->config['icon'] = AviaBuilder::$path['imagesURL']."sc-button.png"; $this->config['order'] = 23; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'csr_calendar_button'; $this->config['tooltip'] = __('Display the "CSR Calnedar" button for the current product', 'avia_framework' ); $this->config['drag-level'] = 3; $this->config['tinyMCE'] = array('disable' => "true"); $this->config['posttype'] = array('product',__('This element can only be used on single product pages','avia_framework')); } /** * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className * * * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_element($params) { $params['innerHtml'] = "<img />config['icon']."' title='".$this->config['name']."' />"; $params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>"; $params['content'] = NULL; //remove to allow content elements return $params; } /** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") { $output = ""; $meta['el_class']; global $woocommerce, $product; if(!is_object($woocommerce) || !is_object($woocommerce->query) || empty($product)) return; // $product = wc_get_product(); $output .= "<div class='av-woo-calendar-button ".$meta['el_class']."'>"; ob_start();?> <table cellspacing="0" cellpadding="2"> <thead> <tr> <th scope="col" style="text-align:left;"><?php _e('Cruise', 'woothemes'); ?></th> <th scope="col" style="text-align:left;"><?php _e('Places availability', 'woothemes'); ?></th> </tr> </thead> <tbody> <?php $args = array( 'post_type' => 'product_variation', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'DESC', 'meta_query' => array( array( 'key' => '_stock', 'value' => array('', false, null), 'compare' => 'NOT IN' ) ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $product = new WC_Product_Variation( $loop->post->ID ); if (get_the_title( $loop->post->post_parent ) == 'CSR Expeditions Payment') { ?> <tr> <td><?php echo $product->get_formatted_variations_name(); ?></td> <td><?php echo intval ($product->stock); ?></td> </tr> <?php } endwhile; ?> </tbody> </table> <?php $output .= ob_get_clean(); $output .= "</div>"; return $output; } } }CONSIDERATIONS
1) It seems working by now, but I have to add it AFTER the product purchase button, otherwise the purchase button doesn’t appear… still have to figure out why
2) I still am trying to see where I can save my new function in the child theme folde. I tried to add it to a subfolder woocommerce/includes, but it doesn’t work like that. By now I left the new function in the original woocommerce file class-wc-product-variation.php, but it is not a good solution as if I update the plugin the modifications would be lost. HERE’S MY QUESTION: do you know where I should save it??
Thanks again
ElenaSORRY ANDY, I ANSWERED TO THE WRONG THREAD!!!! PLEASE DELETE MY ANSWER. I AM GOING TO PUBLISH IN THE PROPER ONE!!
Hi Andy, I think I got it! Since it may serve for others I report here the procedure I adopted. Maybe you can also answer to a question (see at the bottom of the codes)
First of all I created a new function on the file class-wc-product-variation.php that is found in woocommerce/includes/
The function is more or less the modified copy of the get_formatted_name at line 741 of the file. My new function is called get_formatted_variations_name and returns a string which gives the title of the variation and the price. Here it is:STEP 1
/** * Get product variation name. Used within admin. * * @return string Formatted product name, including attributes and price */ public function get_formatted_variations_name() { if ( $this->get_sku() ) { $identifier = $this->get_sku(); } else { $identifier = ''; } $formatted_attributes = $this->get_formatted_variation_attributes( true ); $variation_name = substr($formatted_attributes, 27); $extra_data = $variation_name . ' – ' . wc_price( $this->get_price() ); return sprintf( __( '%s', 'woocommerce' ), $extra_data ); }STEP 2)
I created a new avia element called “calendar’ in which I call the function stated before, together with the stock data in a loop, in order to extract all variation for a determined product. In my case the product was called “CSR Expeditions Payment” and the variations are the dates of the cruises. The $loop passes all the products, and before outputting the data I need, I filter the product of interest (in this case CSR Expeditions Payment).<?php if( !class_exists( 'woocommerce' ) ) { add_shortcode('csr_calendar_button', 'avia_please_install_woo'); return; } if ( !class_exists( 'avia_csr_calendar_button' ) ) { class avia_csr_calendar_button extends aviaShortcodeTemplate { /** * Create the config array for the shortcode button */ function shortcode_insert_button() { $this->config['name'] = __('CSR Calendar', 'avia_framework' ); $this->config['tab'] = __('Plugin Additions', 'avia_framework' ); $this->config['icon'] = AviaBuilder::$path['imagesURL']."sc-button.png"; $this->config['order'] = 23; $this->config['target'] = 'avia-target-insert'; $this->config['shortcode'] = 'csr_calendar_button'; $this->config['tooltip'] = __('Display the "CSR Calnedar" button for the current product', 'avia_framework' ); $this->config['drag-level'] = 3; $this->config['tinyMCE'] = array('disable' => "true"); $this->config['posttype'] = array('product',__('This element can only be used on single product pages','avia_framework')); } /** * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className * * * @param array $params this array holds the default values for $content and $args. * @return $params the return array usually holds an innerHtml key that holds item specific markup. */ function editor_element($params) { $params['innerHtml'] = "<img />config['icon']."' title='".$this->config['name']."' />"; $params['innerHtml'].= "<div class='avia-element-label'>".$this->config['name']."</div>"; $params['content'] = NULL; //remove to allow content elements return $params; } /** * Frontend Shortcode Handler * * @param array $atts array of attributes * @param string $content text within enclosing form of shortcode element * @param string $shortcodename the shortcode found, when == callback name * @return string $output returns the modified html string */ function shortcode_handler($atts, $content = "", $shortcodename = "", $meta = "") { $output = ""; $meta['el_class']; global $woocommerce, $product; if(!is_object($woocommerce) || !is_object($woocommerce->query) || empty($product)) return; // $product = wc_get_product(); $output .= "<div class='av-woo-calendar-button ".$meta['el_class']."'>"; ob_start();?> <table cellspacing="0" cellpadding="2"> <thead> <tr> <th scope="col" style="text-align:left;"><?php _e('Cruise', 'woothemes'); ?></th> <th scope="col" style="text-align:left;"><?php _e('Places availability', 'woothemes'); ?></th> </tr> </thead> <tbody> <?php $args = array( 'post_type' => 'product_variation', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'DESC', 'meta_query' => array( array( 'key' => '_stock', 'value' => array('', false, null), 'compare' => 'NOT IN' ) ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $product = new WC_Product_Variation( $loop->post->ID ); if (get_the_title( $loop->post->post_parent ) == 'CSR Expeditions Payment') { ?> <tr> <td><?php echo $product->get_formatted_variations_name(); ?></td> <td><?php echo intval ($product->stock); ?></td> </tr> <?php } endwhile; ?> </tbody> </table> <?php $output .= ob_get_clean(); $output .= "</div>"; return $output; } } }CONSIDERATIONS
1) It seems working by now, but I have to add it AFTER the product purchase button, otherwise the purchase button doesn’t appear… still have to figure out why
2) I still am trying to see where I can save my new function in the child theme folde. I tried to add it to a subfolder woocommerce/includes, but it doesn’t work like that. By now I left the new function in the original woocommerce file class-wc-product-variation.php, but it is not a good solution as if I update the plugin the modifications would be lost. HERE’S MY QUESTION: do you know where I should save it??
Thanks again
Elena-
This reply was modified 9 years, 9 months ago by
elenapoliti.
Hi Basilis, I tried, but it doesn’t work in the front-end. It only works it it stays in woocommerce original folder.
Right now I solved it by changing the file shipping-form in woocommerce>templates>checkout at line 40
from
<label for=”ship-to-different-address-checkbox” class=”checkbox”><?php _e( ‘Shipping to a different address?’, ‘woocommerce’ );
to
<label for=”ship-to-different-address-checkbox” class=”checkbox”><?php _e( ‘Are you buying it for somebody else?’, ‘woocommerce’ );But it will be deleted once the I update the WC
Thanks anyway
Thank you very much: that worked perfectly!
You can close the topic now.
My compliments for your incredible theme!
ElenaThank you very much: that worked! However I am using a child theme. If I add your code to my own style.css (which would be very much preferable), it doesn’t. I have to add the code #top, but then the text caption appears on any screen size Do you have any suggestion?
Hi Rikard, did you have the chance to see the link I sent to you? Thanks
Elena
I imagined it was hard, as it doesn’t seem to be controlled by CSS classes. However please give a look to this page
The first two images have a text caption that displays on hover. However the text doesn’t appear on a mobile device with the touch screen. Hence I would like that on touch screens the text will be displayed always.
Best regards
Elena
-
This reply was modified 9 years, 8 months ago by
-
AuthorPosts
