Bug? Not sure if title tags are meant to be in div tag…

Home Forums Calendar Products Events Calendar PRO Bug? Not sure if title tags are meant to be in div tag…

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #127169
    hqrecon
    Participant

    Hi,
    I have been using Autoptimize to minify my HTML and JS, but minifying CSS made some html text appear on the page. I think I tracked it down looking at view source on the ‘Upcoming Events’ page to the below where there are title tags in the div tags. If it is meant to be like that, then please ignore this post, but otherwise please do correct this issue as it is stopping me from minifying my CSS! I think the error is here:

    <div id=”tribe-events-header” data-title=”<title>Upcoming Events »</title> ” data-view=”list” data-baseurl=”http://www.hqrtech.co.uk/events/upcoming/”&gt;

    Many thanks,
    Alex

    #127176
    hqrecon
    Participant

    I think I have tracked it down to the file: the-events-calendar / public / template-tags / general.php where on line 487 it says:
    $attrs[‘data-title’] = wp_title(‘»’, false);
    This is somehow inputting the title tags, not sure why though.

    #127677
    Barry
    Member

    It sounds more like a problem with the minifier, from the sounds of things – but I’m not sure exactly what is being output and since it sounds like you turned off minification I can’t take a look and see.

    You could definitely consider filtering the output of that code, though, using the tribe_events_header_attributes filter if you wanted to press ahead with using the minifier.

    #497201
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread (and so it will no longer be monitored by staff). If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Bug? Not sure if title tags are meant to be in div tag…’ is closed to new replies.