Tagged: mobile, not working, table
-
AuthorPosts
-
October 13, 2015 at 4:58 pm #518185
Hi
I have an issue using Hyphens in Enfolf tables withing WooCommerce tabs.
On a desktop, they display correctly …
http://screencast.com/t/nST2Ggyr
But on a mobile, the hyphens dont display …
http://screencast.com/t/ytswzKcSu7E
It displays HTML code … not sure why when it isnt a HTML character I am using.
October 14, 2015 at 5:37 am #518487Hi richardelectrix,
Not sure why that is happening, could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Thanks,
RikardOctober 14, 2015 at 9:10 am #518537Hi
We will need your IP address to allow you access to the admin area (a security policy set by our hosts), unless you can provide me with a UK based IP address.
October 15, 2015 at 5:57 am #519045Hi,
For me personally it wouldn’t be possible since my connection has a dynamic IP’s, not sure if it would be possible with a VPN service though? Not sure if the IP would stay static doing that anyway though. The moderators are located all over the world an none of us are in the UK unfortunately. Is there anyway you could copy your site to a different server which we can access? Giving you IPs is not really a good solution if you need help which requires us to access the backend of your theme.
Best regards,
RikardOctober 15, 2015 at 8:59 am #519073Hi
You could use a VPN service like HMA which will give you a UK IP address?
October 19, 2015 at 6:31 am #520739Hi!
The issue you’re experiencing is related to the table ‘mobile conversion’ Enfold does, there’s a way to disable that by turning this option (in the Table element popup):
http://screencast.com/t/J5d5USq2XIf you’re using shortcodes:
[av_table purpose='tabular' pricing_table_design='avia_pricing_default' pricing_hidden_cells='' caption='' responsive_styling='avia_scrollable_table' custom_class='']
Cheers!
JosueOctober 19, 2015 at 11:07 am #520819Hi
But by disabling it, it makes the table scrollable which is not what I want.
One of the nice features of Enfold is the way the tables are fully responsive.
October 20, 2015 at 12:12 am #521272Ok let’s try something, open /enfold/config-templatebuilder/avia-shortcodes/table.php and look for this line:
$responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(".($counter + 1)."):before { content: '".$row['content'][$counter]['content']."'; } ";
Replace it by this:
$responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(".($counter + 1)."):before { content: '".html_entity_decode($row['content'][$counter]['content'])."'; } ";
Regards,
JosueOctober 20, 2015 at 11:22 am #521497Hi
That doesnt work.
October 20, 2015 at 10:48 pm #522060Hey!
Can you paste the table shortcode you’re using here?
Best regards,
JosueOctober 21, 2015 at 12:20 pm #522256Table code in private
October 22, 2015 at 3:37 pm #523048Hi!
can you use a page like pastebin.com for the shortcodes please? so we can see the actual code you are using.
Regards,
AndyOctober 22, 2015 at 3:57 pm #523063October 24, 2015 at 4:39 am #524168Hey!
Are you sure this didn’t work? i just made a quick test with the shortcode you gave us and indeed the hyphens were messed up at first, then i applied that mod to the table.php file and it did got fixed.
Regards,
JosueNovember 9, 2015 at 2:22 pm #532587Hi Josue
See private.
November 9, 2015 at 11:13 pm #532953November 11, 2015 at 12:40 pm #533957Hi
The IP has been added.
November 11, 2015 at 1:02 pm #533963Hi,
Can you hand me a temporary FTP / SFTP account? it’s kinda difficult to work with the default WP theme editor.
Regards,
JosueNovember 11, 2015 at 1:12 pm #533973Hi Josue
By any chance have you just been on out site in the back end?
The whole site has stopped working within the last 15 minutes.
Could this be anything you have done?
Thanks
November 11, 2015 at 1:14 pm #533974Josue
Have you changed anything in Functions.php?
The front end and back end have stopped working.
The front end is working to a point but all links to the css and icons and pages doent work.
November 11, 2015 at 1:32 pm #533983Could be the last piece of code in child theme functions.php, it looks like this:
add_filter('avia_load_shortcodes', function($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }, 15, 1);
Try removing it.
November 13, 2015 at 2:53 pm #535404Hi
We have the site working again – are you able to try and fix the hyphens issue?
November 14, 2015 at 12:25 pm #535837Hi,
Can you please create us a temporary FTP / SFTP account? post it here as a private reply.
Regards,
JosueNovember 16, 2015 at 10:20 am #536406Details below
November 17, 2015 at 12:32 pm #537250Hi!
Check it now, i’ve used a modified version of table.php in your child theme (/shortcodes/).
Regards,
JosueNovember 17, 2015 at 1:08 pm #537259Perfect – will that code get rolled out in the update??
What code did you add so I can make a note of it for future.
November 18, 2015 at 9:54 am #537914Hey!
Could be, i’ll report the issue to Kriesi. Although you don’t have to worry about it as it the mod is in your child theme, the modification goes as follows (361-366 in table.php):
$input = $row['content'][$counter]['content']; $psuedo_content = preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $input); $responsive_style .= ".avia-table-".self::$table_count." td:nth-of-type(".($counter + 1)."):before { content: '".str_replace("<BR>", " ",$psuedo_content)."'; } "; $counter ++;
So the idea is to process the content before inserting it to make sure these entitiy characters are converted.
Regards,
JosueNovember 18, 2015 at 10:22 am #537933Thanks
-
AuthorPosts
- The topic ‘Using hyphens in Enfold Tables’ is closed to new replies.