hammertime
|
For some reason Artisteer deletes htmls tags from menu items, other theme's output the html tags without any trouble...
When i make a custom menu and edit the title for a menu item to include a line break, artisteer deletes al the html tags. Is there a way to allow these tags and make 2 line menu items?
|
|
Cindy
|
My guess it has something to do with "strip_tags" in navigation.php:
'title' => strip_tags(empty($el->attr_title) ? $title : $el->attr_title),
It's an php function to strip out html tags, in this case used to "clean" the menu item. The default Wordpress themplates do allow the use of html tags in menu items
|
|
hammertime
|
Thanks, it was the strip_tags in navigation.php under:
/* menu item */
replace
$title = strip_tags(apply_filters('the_title', $this->title, $this->id));
with
$title = apply_filters('the_title', $this->title, $this->id);
|
|
Alex
|
Thanks!
Quote hammertime:
Thanks, it was the strip_tags in navigation.php under:
/* menu item */
replace
$title = strip_tags(apply_filters('the_title', $this->title, $this->id));
with
$title = apply_filters('the_title', $this->title, $this->id);
|
|
Jeanine
|
I used the fix above, and it did prevent the stripping of the codes, but I can only see the first line of the text in each menu item (i.e. Contact <br/> Us yields Contact on the site)
If I leave the code in it's original form, It shows Contact Us even if I have Contact <br/> Us, so I know I did it right from that perspective.
Any ideas?
|
|
Jeanine
|
I realized that the menu items are actually going to multiple lines, however the formatting is messed up.
You can see the home page at http://mscwebsiteproof.com/cpcpac/
The last 2 menu items should be Financial Advisors/TPAs and Contact Us on 3 and 2 lines respectively. You can see the extra lines, but they are down into the image area of the header.
Please let me know how I might fix this in the CSS.
|
|
RobR
|
Hello, This is exactly what I am trying to do, my only problem is the the menu bar wont stretch out in Height, so it looks like the second word is below the menu, like this
______________________
Home | About | Contact
______________________
Us Us
|
|
RobR
|
it removed my spacing
The About and Contact have the word Us under them, but its under the menu bar
I tried adjusting the padding, which only made the area where the first word is larger, but still left the second word under the bar.
There is no option to adjust the Height of the bar
*Why do I feel like a lot of functionality has been lost over the last few versions?
Ya, we have gained, but also lost things that used to be much easier
|
|