close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add Image in the menu

Thread began 1/18/2012 12:50 pm by info427536 | Last modified 1/19/2012 9:25 am by Jason Byrnes | 1460 views | 6 replies |

info427536

Add Image in the menu

How can you add an image in the main menu and should be the dimensions

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to edit the webassist/plugins/main_menu/menu.php file and add an inline style for the background image, for example:

change:
<li class="top"><span><a href="../../../index.php">Home</a></span></li>

to:
<li class="top"><span><a href="../../../index.php" style="background-image: url('plugins/path/to/image.jpg');">Home</a></span></li>


the dimensions will change from theme to theme, 90 X 35 is a good starting point though

Sign in to reply to this post

ARLEY_BARLEY434768

i agree too

i agree <li class="top"><span><a href="../../../index.php" style="background-image: url('plugins/path/to/image.jpg');">Home</a></span></li>

Sign in to reply to this post

info427536

Menu

Does that mean I will be able to set the height from 55 to 40px of navigation as well, when I do that the banner underneath floats to the right.

Also do I add the image to the index.php file or the css

Sign in to reply to this post

Jason ByrnesWebAssist

you need to edit the theme css to change the height of the navigation, not the menu file.


send a link to your site and i can give more information


for the image on the menu, by adding the inline style:
style="background-image: url('plugins/path/to/image.jpg');

to the menu item, you are attaching the image to the menu, you don't need to add it anywhere else.

Sign in to reply to this post

info427536

website

www.buyclearancefurniture.co.uk

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/themes/three_col_new/css/crazy_styles.css file, you need to edit the height of the #navWrapper selector, and the height and line-height for the #cssmw li.top selector to change the menu items height.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...