Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #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.

    http://dev2.electrixinternational.com/product/flat-roof-terminal-and-control-enclosure-with-sealed-compartment-wall-fixing-points/

    #518487

    Hi 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,
    Rikard

    #518537

    Hi

    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.

    #519045

    Hi,

    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,
    Rikard

    #519073

    Hi

    You could use a VPN service like HMA which will give you a UK IP address?

    #520739

    Hi!

    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/J5d5USq2X

    If 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!
    Josue

    #520819

    Hi

    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.

    #521272

    Ok 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,
    Josue

    #521497

    Hi

    That doesnt work.

    #522060

    Hey!

    Can you paste the table shortcode you’re using here?

    Best regards,
    Josue

    #522256

    Table code in private

    #523048

    Hi!

    can you use a page like pastebin.com for the shortcodes please? so we can see the actual code you are using.

    Regards,
    Andy

    #523063
    #524168

    Hey!

    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,
    Josue

    #532587

    Hi Josue

    See private.

    #532953

    .

    #533957

    Hi

    The IP has been added.

    #533963

    Hi,

    Can you hand me a temporary FTP / SFTP account? it’s kinda difficult to work with the default WP theme editor.

    Regards,
    Josue

    #533973

    Hi 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

    #533974

    Josue

    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.

    #533983

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

    #535404

    Hi

    We have the site working again – are you able to try and fix the hyphens issue?

    #535837

    Hi,

    Can you please create us a temporary FTP / SFTP account? post it here as a private reply.

    Regards,
    Josue

    #536406

    Details below

    #537250

    Hi!

    Check it now, i’ve used a modified version of table.php in your child theme (/shortcodes/).

    Regards,
    Josue

    #537259

    Perfect – will that code get rolled out in the update??

    What code did you add so I can make a note of it for future.

    #537914

    Hey!

    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,
    Josue

    #537933

    Thanks

Viewing 28 posts - 1 through 28 (of 28 total)
  • The topic ‘Using hyphens in Enfold Tables’ is closed to new replies.