Menu title not visible even if Insert hyperlink descriptions ("title" attribute) into hyperlink texts. (Default: disabled) option is checked in superfish menu configuration

Created on 11 October 2022, about 2 years ago
Updated 18 July 2024, 5 months ago

Menu title not visible even if Insert hyperlink descriptions ("title" attribute) into hyperlink texts. (Default: disabled) option is checked in superfish menu configuration

When we place the superfish menu block in block structure for particular region we have to set some configurations in that we have checkbox option to show menu title as- Insert hyperlink descriptions ("title" attribute) into hyperlink texts. (Default: disabled) if we checked this option it should display the menu title.

There are code available for hiding menu title as // Hiding link descriptions (the "title" attribute). if ($settings['hide_linkdescription']) {
$item['options']['attributes']['title'] = '';
}
same we have to add for displaying menu title using $settings variable
if ($settings['add_linkdescription']) {
$item['options']['attributes']['title'] = $item['text'];
}
so it will add menu title if checkbox is checked in configuration .

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India snehahande

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024