> Forums > Active Forums > Themes and Templates > Request: Disable hint text on subject link
Last Post 26 Jul 2010 12:28 PM by NFXBeats. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
NFXBeats
Customers
NFXBeats
Post Count:299

--
22 Jul 2010 07:35 PM
    I really don't like the fact that every subject link has the post text embedded as the title attribute. Can you please give us a way to turn that off?

    I thought it would be in the TopicsView template, and while there is a reference to a Title attribute, it seems like the SUBJECTLINK tag has that automatically embedded and overrides the template.

    Turning this off can help shave some KBs off every page load and would make my site look better since the title attribute sometimes contains script code (contained in the body) that messes up the display.
    Status: I'm no longer moderated.
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1511

    --
    26 Jul 2010 12:23 PM
    You can use jQuery to remove the attribute. This won't improve load times, but it will help with the script code display issue.

    Add this to your current TopicsView template or somewhere else on the page.

    
    <script type="text/javascript">
    $(document).ready(function() {
       $("td.afsubject a").removeAttr("title");
       $("td.afsubject").removeAttr("title");
    });
    </script>
    
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    26 Jul 2010 12:25 PM
    On this same note. I would like the ability to have AF NOT alter my meta description with the post body. It messes with my SEO. Thanks.
    Status: I'm no longer moderated.
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    26 Jul 2010 12:28 PM
    Thanks for the code Ben. I still hope this can someday be a feature (or moved into the template)
    Status: I'm no longer moderated.
    You are not authorized to post a reply.
    > Forums > Active Forums > Themes and Templates > Request: Disable hint text on subject link
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy