0

Is there a module or method for adding in HTML ASCII codes into menu item links in Drupal 7?

Currently, I want to make the following a link in my footer menu.

© Copyright 1998-2000
  • Try to edit a template theme 'sites/all/themes/%name_your_default_theme%' – user3044272 Dec 24 '13 at 8:38
  • Perhaps you could elaborate a little more? As it stands this answer isn't really suitable for this site. What template do you suggest OP should try editing? – Chapabu Dec 24 '13 at 9:28
  • As side note, the copyright symbol is not part of ASCII codes; it's Unicode. – kiamlaluno Dec 24 '13 at 9:43
1

Another solution would be to use CSS and then use :before to insert the copyright symbol.

.copyright-block:before {
  content: "\a9";
}
  • This would mean to be able to alter the CSS class output for the menu link, which is not possible without a module that does it. At that point, it is probably better to use the Menu HTML module. – kiamlaluno Dec 24 '13 at 9:45
  • Menu items have unique classes so it would be easy. Either way, it was just an alternative solution, Menu HTML works fine. – benjy Dec 24 '13 at 14:10
  • i like this method as i dont need to install another module. – Patoshi パトシ Jan 7 '14 at 19:02
2

Yes. Menu HTML.

This very simple module adds a checkbox to the menu item edit form and allows the admin to add html to the menu item title. The idea is to use this for external links for which you want to display a logo of the visited site or simply to add strong on some words.

  • I would say this is the solution the OP is looking for. – kiamlaluno Dec 24 '13 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.