Support » Plugin: Woo Title Limit » Trim Title On All Pages Except Product Page…

  • Resolved enone

    (@enone)


    Great And Useful Plugin! šŸ™‚
    Just I’ve Some Long Titles On Other Pages Built With Visual Composer And YITH Plugin That This Plugin Is Unable To Intercept…
    Is There A Function To Enable To Apply This Trim On All Pages Except The Product Page?
    Thanks…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter enone

    (@enone)

    I Answer Myself… Maybe Other Need This…

    On Line 503 Of woo-title-limit.php Change
    else if ( (is_home() || is_front_page()) && get_post_type( $id ) === 'product' ) {'

    With This

    else if ( get_post_type( $id ) === 'product' ) {

    Plugin Author DimaW

    (@dimaw)

    Thanks for the feedback and sorry for my late answer.
    But I’m glad you found your own solution.
    Remember that these changes will be overwritten by future updates.

    Thread Starter enone

    (@enone)

    Thanks DimaW No Problem… I Hope You Can Include In Next Version So… šŸ™‚

    I’ve Also PHP Notice Warning Errors That I’m Unable To Fix…

    [02-Jun-2019 10:48:44 UTC] PHP Notice:  Undefined index: wtl_checkbox_etc_product in /home/public_html/wp-content/plugins/woo-title-limit/woo-title-limit.php on line 476
    [02-Jun-2019 10:48:44 UTC] PHP Notice:  Undefined index: wtl_checkbox_etc_product in /home/public_html/wp-content/plugins/woo-title-limit/woo-title-limit.php on line 487
    

    Line 476 Is:
    if($options['wtl_checkbox_etc_product'] != 1 && $options['wtl_count_product'] < strlen($title)){

    Line 487 Is:

    }else if($options['wtl_checkbox_etc_product'] == 1 && $options['wtl_count_product'] < strlen($title)){

    Plugin Author DimaW

    (@dimaw)

    You only need to check the variable with isset() before the comparison.
    I will fix this in the upcoming version. Thank you for your feedback!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trim Title On All Pages Except Product Page…’ is closed to new replies.