• Resolved robinz1

    (@robinz1)


    Hi,

    Just thought I should let you know that I’ve come across a bug whereby changing the style settings for the timeline title doesn’t work. I’d changed the font size, and set it to center aligment, in the admin page, but the page wasn’t showing these changes.

    I dug into the code and discovered that it was in fact a bug, which I could easily fix myself – but I thought I’d describe it for your information.

    The problem is that the auto-generated style tag is hard-coded to always use the selector .cool_timeline h1.timeline-main-title, which of course doesn’t work if you’ve set the title tag to something different (mine is h3).

    I’m using the pro version, v3.0.1 – the offending line was line 272 of cool-timeline-custom-styles.php. I’ve done a really simple fix in my codebase of adding the following near the top of the ctl_custom_styles function:

    $ctl_title_tag = $ctl_options_arr['title_tag'] ? strtolower($ctl_options_arr['title_tag']) : 'h2';

    and then altering the offending line mentioned above to:

    $styles.='.cool_timeline '.$ctl_title_tag.'.timeline-main-title

    and now all seems well.

    I’m surprised this hasn’t already been noticed and fixed, but there is is – please feel free to adopt this change if it fits in with your coding standards.

The topic ‘title styles’ is closed to new replies.