1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / SF rendering description as menu title

SF rendering description as menu title

6 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    30 Jan 2012
    Link to this post
    Is this supposed to be like this or have I made something strange.
    I my menu the page description gets rendered as title tag.

    www.wesage.ch/home

    Regards Markus
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    30 Jan 2012
    Link to this post
    That's how it should be...I think that's probably desirable for most people, especially with large sites.  Sure it generates a bit more markup, but it's valid markup as it describes the links.

    You should be able to kill with with jQuery though
    //Set the titles to nothing
    $(".RadMenu a").attr("title","");
     
    //OR
     
    //Just remove the titles
    $(".RadMenu a").removeAttr("title");
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    31 Jan 2012
    Link to this post
    @Steve
    Thank's for the feedback and for the solution to remove the title tags.

    @Telerik
    Was this like this on all 4.x versions or is this a new feature, behavior?

    Markus
  4. Seth
    Seth avatar
    8 posts
    Registered:
    22 May 2012
    29 May 2012
    Link to this post
    @Steve I tried using putting this code into my site and it doesn't do anything.

    I tried putting in the template, the individual page, and in the content but the title attribute still shows it's ugly head. Do I need to link to an external .js file or put anything else in to get it to display without the title?

    ps. I'm using Sitefinity 5.x
  5. Seth
    Seth avatar
    8 posts
    Registered:
    22 May 2012
    29 May 2012
    Link to this post
      I ended up solving the problem by using 

    $("document").ready(function() {
    $(".rsmItem a").attr("title", "");
    });

    The problem was that Sitefinity was not updating the page late enough, the script would run but not update anything that loaded after the script ran. I hope that if someone else has a similar problem this helps them out as well.
  6. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    29 May 2012
    Link to this post
    @Seth
      The only reason why it wouldn't work is that jQuery isn't loaded (or loaded yet)

    Just to check also...It's inside <script type="text/javascript"></script> or you used the javascript drag\drop widget right?

    Try this instead
    //Set the titles to nothing
    $telerik.$(".RadMenu a").attr("title","");
      
    //OR
      
    //Just remove the titles
    $telerik.$(".RadMenu a").removeAttr("title");
6 posts, 0 answered