I am having a bit of a struggle changing the alt and title attributes for the print module. I have been through all the files that come with the mod and can't find where these are set and have looked on here but can't see this already mentioned. At present the mod is generating the following code:
<span class="print_html"><a href="http://www.mysite.com/print/2" title="Display a printer-friendly version of this page." class="print-page" rel="nofollow"><img src="/modules/print/icons/print_icon.gif" alt="Printer-friendly version" title="Printer-friendly version" width="16" height="16" class="print-icon print-icon-margin" />Printer-friendly version</a></span>
the problem is the page content itself is pretty brief and as a result from an SEO point of view is looking like one of the main phrases it is optimised for is "printer-friendly" which isn't quite what I'm aiming for. :-)
I am assuming this is because the phrase "printer-friendly" shows up 4 times in those 2 lines of code as an alt, title and content, hence i wanted to tweak those, but can't for the life of me find them. Sorry if this is a dumb question, but any pointers are appreciated.
Thanks
Comments
Comment #1
jcnventuraYou can change all of them to something else in admin/settings/print/html/strings. If you want to set each of them to something different, you'll have to modify the code.
João
Comment #2
mrandy commentedHi João
I will probably want to change them all to different things or maybe even remove them from showing at all. You couldn't give me a pointer to which file I should be looking at could you please as I was really struggling to find where it was covered within the module files.
Thanks
Andy
Comment #3
mrandy commentedComment #4
jcnventuraIn that case, you're probably off better looking at the module's documentation and creating your own version of theme_print_format_link().
João
Comment #5
mrandy commentedok, thanks for the pointer, I'll take a look at that.
Andy