• Resolved pch101

    (@pch101)


    Hi again –

    An odd problem with the latest version of the theme: When there is a dollar sign and a decimal point (period) included in the text excerpt of a post, the amount of money will not appear in either the text excerpt on the home page or on the archive page.

    (The post titles are fine; this problem is limited to the text excerpt.)

    For example, a text excerpt of “Wells Fargo will pay $1.2 billion” will be displayed as “Wells Fargo will pay $ billion”

    If there is no decimal point included in the dollar amount, then it displays correctly. If there is a decimal point/period but no dollar sign, then it also displays correctly. It is the combination of the dollar sign and the decimal point that causes the problem.

    Any ideas? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Richie KS

    (@rkcorp)

    open lib/functions/theme-functions.php edit line 393

    $pattern = "/[a-zA-Z]*[:\/\/]*[A-Za-z0-9\-_]+\.+[A-Za-z0-9\.\/%&=\?\-_]+/i";
    to

    //$pattern = "/[a-zA-Z]*[:\/\/]*[A-Za-z0-9\-_]+\.+[A-Za-z0-9\.\/%&=\?\-_]+/i";

    although not sure if it will effect other excerpt since this is code to remove url link tag in content excerpt.

    Thread Starter pch101

    (@pch101)

    Thanks very much. That worked perfectly on both the home page and in the archive of two different installations and with different browsers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dollar sign ($) glitch’ is closed to new replies.