• Resolved henri.frontierworld

    (@henrifrontierworld)


    I would like to limit the Product Title text on the Catalog page to n positions. How could I achieve this?

    Henri
    ===
    WordPress Environment
    Home URL: [?] https://frontierworld.nl/webshops
    Site URL: [?] https://frontierworld.nl/webshops
    Jigoshop Version: [?] 1.17.6
    Jigoshop Database Version: [?] 1503180
    Log Directory Writable: [?] ? To allow logging, make /var/www/vhosts/frontierworld.nl/httpdocs/webshops/wp-content/uploads/jigoshop-logs/ writable or define a custom JIGOSHOP_LOG_DIR.
    WP Version: [?] 3.8.1
    WP Multisite: [?] –
    WP Memory Limit: [?] 256 MB
    WP Debug Mode: [?] –
    Language: [?] nl_NL
    Server Environment
    Server Info: [?] Apache
    PHP Version: [?] 5.3.3-7+squeeze22
    PHP Post Max Size: [?] 8 MB
    PHP Time Limit: [?] 300
    PHP Max Input Vars: [?] 1000
    SUHOSIN Installed: [?] ?
    MySQL Version: [?] 5.1.73
    eAccelerator: [?] ?
    APC: [?] ?
    OpCache: [?] ?
    Short Open Tag: [?] ?
    Allow URL fopen: [?] ?
    Session: [?] ?
    Cookie Path: [?] /
    Save Path: [?] /var/lib/php5
    Use Cookies: [?] ?
    Use Only Cookies: [?] ?
    Max Upload Size: [?] 8 MB
    Default Timezone is UTC: [?] ?
    fsockopen/cURL: [?] ?
    SoapClient: [?] ?
    Remote Post: [?] ?
    Remote Get: [?] ?
    Server Locale
    decimal_point: [?] .
    thousands_sep: [?] N/A
    mon_decimal_point: [?] N/A
    mon_thousands_sep: [?] N/A
    Active Plugins (16)
    Add Logo to Admin by c.bavota – 1.6
    Email Address Encoder by Till Krüss – 1.0.4
    Jetpack door WordPress.com by Automattic – 3.0.2
    Jigoshop by Jigoshop Limited – 1.17.6
    Premium Shipping for Jigoshop by Jigoshop – 1.4.1
    Pronamic iDEAL by Pronamic – 1.2.6
    Redirect Editor by Justin Watt – 1.2
    SC Scrollup by Mashiur Rahman Shoyeb – 1.0
    Shortcoder by Aakash Chakravarthy – 3.3
    Suffusion Collapse Menu by Ciprian Dracea (Drake) – 0.6
    Suffusion Commerce Pack by Sayontan Sinha – 1.10
    UK Cookie Consent by Catapult – 1.8.2
    Ultimate Tables by extendyourweb.com – 1.2
    Wordfence Security by Wordfence – 5.3.6
    WordPress Backup to Dropbox by Michael De Wildt – 4.1
    WP-PageNavi by Lester ‘GaMerZ’ Chan – 2.87
    Instellingen
    Taxes Enabled [?] –
    Shipping Enabled [?] ?
    Force SSL: [?] –
    Munteenheid [?] EUR (€)
    Currency Position [?] left_space
    Thousand Separator [?] .
    Decimal Separator [?] ,
    Number of Decimals [?] 2
    Jigoshop Pages
    Shop Base: [?] #4 – /
    Winkelwagen: [?] #5 – /?page_id=5
    Kassa: [?] #11 – /?page_id=11
    Betaal: [?] #12 – /?page_id=12
    Thanks: [?] #13 – /?page_id=13
    Mijn account: [?] #7 – /?page_id=7
    Edit Address: [?] #8 – /?page_id=8
    Bekijk bestelling: [?] #10 – /?page_id=10
    Verander wachtwoord: [?] #9 – /?page_id=9
    Track Order: [?] #6 – /?page_id=6
    Terms: [?] Page not set
    Taxonomies [?]
    Product Types: configurable (configurable),
    downloadable (downloadable),
    external (external),
    grouped (grouped),
    simple (simple),
    variable (variable),
    virtual (virtual)
    Theme
    Naam: [?] Child of Suffusion
    Version: [?] 1.0.0
    Author URL: [?]
    Child Theme: [?] ?
    Parent Theme Name: [?] Suffusion
    Parent Theme Version: [?] 4.4.7
    Parent Theme Author URL: [?] https://mynethome.net/blog
    Jigoshop Support: [?] Not Declared
    Templates [?]
    Overrides (jigoshop): childofsuffusion/jigoshop/checkout/form.php,
    suffusion/index.php,
    childofsuffusion/jigoshop/loop-shop.php,
    childofsuffusion/jigoshop/product_taxonomy.php,
    childofsuffusion/jigoshop/single-product.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi henri.frontierworld,

    If you would like to manipulate with product titel text you can style them in theme css file.

    Thread Starter henri.frontierworld

    (@henrifrontierworld)

    Thank you for the advice! Somehow I was expecting a php solution.
    I got it working but I also want to add a ‘…’ to the end when a product title is cut off. Could this conditional also be done with css?

    And could you please let me know in what file to look if I want to solve this with php?

    Hi henri.frontierworld,

    The file is loop-shop.php at line 58 is located your products title but, it is strongly recomended to not change any files in order to fututre updates, with css you can do it also follow the link here and you will find how to add ellipsis and quots after and before text with css.

    With php also it is possible I suppose that you are familiar with php, I’ll give you an example below:

    function addDottsToTitle($string, $replace, $limitOfString){
    if(strlen($string) > $replace){
    return substr($string, 0, $limitOfString) . $replace;
    }else{
    return $string;
    }
    }

    $title = ‘Product title’;
    <h1><?php echo addDottsToTitle($title, ‘…’, 6); ?></h1>

    Thread Starter henri.frontierworld

    (@henrifrontierworld)

    Hi Vasili,

    Thank you for your helpful response!

    Henri

    Hi Henri,

    I’m glad that I could help and resolve your issues.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Limit Product Title on Catalog page’ is closed to new replies.