Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8793275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:06:07+00:00 2026-06-13T23:06:07+00:00

I am Developing a website in Drupal 7 http://lorrells.seoperspective.com/ Now Problem here is the

  • 0

I am Developing a website in Drupal 7

http://lorrells.seoperspective.com/

Now Problem here is the sidebar menu (on Left)
my client wants something like in image below
enter image description here

means he wants a small amount of text below the link
so I was thinking to add “title” text below in span where I can style it

What I want is

<ul>
    <li class="menu-359 first"><a class="Litigation" title="Our niche Litigation Department punches well above its weight." href="http://lorrells.seoperspective.com/Litigation">Litigation</a><span>Our niche Litigation Department punches well above its weight.</span></li>
</ul>

code in page.tpl.php

 <div class="sidebar_menu"> 
     <?php

        $menu = menu_navigation_links('menu-sidebarmenu');
        print theme('links__menu-sidebarmenu', array('links' => $menu));


    ?>

    </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:06:08+00:00Added an answer on June 13, 2026 at 11:06 pm

    Method 1:
    Have you had a look at this contrib module? It will expose you a checkbox to enter html in menu titles. But am warning you, html in menu items are risky business. Make sure the permissions are set correctly.

    Method 2:
    Another way you could achieve the same effect could be creating a block with custom markup. But then if you give permission to edit that to your client, that would probably be a disaster waiting to happen.

    Method 3:
    If you are comfortable in playing with hooks, hook_menu_link_alter(&$item) could be used to set html attribute to true, and also reformat the title, the way you want it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to incorporate a search bar(http://loopj.com/) in a drupal website I
I'm developing a website for a client of ours and have been having a
I'm developing this website: http://parkoura.tk/a/sandbox/ I am using an ajax navigation. I have a
I am developing a website using drupal 7. I use blog module which comes
I'm developing a website in Drupal 6. I've 3 blocks (I use as footers),
I'm developing a website using drupal's (7.14) Marinelli theme as a template. I'm currently
I'm developing a website who uses an external Drupal for the articles and pages.
I'm developing a website who uses an external Drupal for the articles and pages.
I am developing website with PHP Yii Framework and I am now stack, I
I am developing a website with codeignite . I have problem with submiting forms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.