menu items only appear when hovering over them

General questions about CMSimple
Post Reply
panagyro
Posts: 4
Joined: Thu Dec 09, 2021 3:13 am

menu items only appear when hovering over them

Post by panagyro » Thu Dec 09, 2021 3:23 am

I am using the template
fhs_basic
with slideshow.

Problem:
The menu at the left has all its items, but ONLY THE ONE I AM HOOVERING ABOUT IS VISIBLE !

what can be wrong?

Question:
how can the menu be formatted (background color, font color,...)

thank you

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: menu items only appear when hovering over them

Post by frase » Fri Dec 10, 2021 7:01 am

panagyro wrote:
Thu Dec 09, 2021 3:23 am
what can be wrong?
Unfortunately, it is not clear from your description what changes you have already made. Without seeing the site, help is hardly possible.
panagyro wrote:
Thu Dec 09, 2021 3:23 am
how can the menu be formatted (background color, font color,...)
One possibility would be to right-click on the elements in question and examine them. This will help you find the appropriate places in the stylesheet.css that you need to change.

Probably the values for background and font color are identical (for .secmenu li a, .secmenu li span - stylesheet.css, line 716).

panagyro
Posts: 4
Joined: Thu Dec 09, 2021 3:13 am

Re: menu items only appear when hovering over them

Post by panagyro » Fri Dec 10, 2021 6:31 pm

thanks for the answer.
1) The site can currently be seen (very crude Testversion!!) with
http://mov.ruthagency.net/

2) I made no changes to menu css, in particular no :hover

3) With
Inspect (Q)
I can make changes and see them, but they are not saved! When I move from the element all is like before.
how can save these changes ?
Sorry, but I could not find answers in the doc.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: menu items only appear when hovering over them

Post by cmb » Fri Dec 10, 2021 11:23 pm

Have a look at the file templates/fhs-basic/stylesheet.css starting at line 733:

Code: Select all

.secmenu li a,
.secmenu li span {
	text-decoration: none;
	padding: .5em;
	display: block;
	color: #fff;
	background: #fff;
	border: 0;
}
color and background should have different colors. For instance, try:

Code: Select all

.secmenu li a,
.secmenu li span {
	text-decoration: none;
	padding: .5em;
	display: block;
	background: #fff;
	border: 0;
}
Christoph M. Becker – Plugins for CMSimple_XH

panagyro
Posts: 4
Joined: Thu Dec 09, 2021 3:13 am

Re: menu items only appear when hovering over them

Post by panagyro » Sat Dec 11, 2021 12:15 am

thanks! seems to work now.

May I abuse to ask another question?

When I select menupoints which have submenus (e.g. "preocupaciones"), I get the page, but a mysterious "submenu" structure is added to the page text, see screenshot in attachment.

Where does it come from and how can I get rid of it?
thanks for a hint.
You do not have the required permissions to view the files attached to this post.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: menu items only appear when hovering over them

Post by frase » Sat Dec 11, 2021 7:09 am

panagyro wrote:
Sat Dec 11, 2021 12:15 am
When I select menupoints which have submenus (e.g. "preocupaciones"), I get the page, but a mysterious "submenu" structure is added to the page text, see screenshot in attachment.

Where does it come from and how can I get rid of it?
The submenu is intended to provide the visitor with a reference to the existing subpages at the end of the text.

If you do not want this, then delete this line in the template.htm:

Code: Select all

<div class="submenDiv"><?=submenu('<span>%s</span>');?></div>

panagyro
Posts: 4
Joined: Thu Dec 09, 2021 3:13 am

Re: menu items only appear when hovering over them

Post by panagyro » Sun Dec 12, 2021 3:18 pm

thank you.

Post Reply