Dear SiteOrigin Support,
on my website https://hike-and-travel.com, I am using a menu entry with submenu items. On a mobile device, this menu item “Galleries” only expands when clicking on the arrow that shows up when using a mobile device. Is there any possibility of making the whole row / text clickable? So that wherever I click on that row, the dropdown menu appears?
Also, I would like to have the arrow and all submenu items appear centered. I have managed to center the items by using
display:inline– however, I do not think this is appropriate, is it? Can I also position the arrow just next to the menu item text?
Thanks in advance, I highly appreciate any advice.
Best regards,
Steffen
Hi Steffen,
You can change this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Please add the following CSS:
How does that look?
You might also need to install the SiteOrigin CSS Editor
Hi Alex,
sorry for getting back to you so late. I did not have internet connection for a while.
Thanks for your advice. Unfortunately, after adding the custom css I do not see any difference:
Any other suggestions?
Hi Steffen,
I just had a look at your website and the CSS appears to be working without issue. Can you please try clearing your browser cache to see if that helps?
Hello Alex,
I have tried with both my cell phone and the laptop (imitating mobile resolution) and the dropdown menu still only appears when I click on the arrow. Is this different for you?
Thanks for taking your time to help me.
Best regards,
Steffen
Hi Steffen,
Oh! Sorry, I misunderstood what you were after.
Please replace the above CSS with the following CSS instead:
How does that look?
You might also need to install the SiteOrigin CSS Editor.
Hi Alex,
thanks for the help. Your code works fine, but the
option removes all padding (The menu items become really small). I only want the right padding to be 0. So I changed this to:
Best regards,
Steffen
Hi again,
I also changed
to
and ommitted my previously defined
to center the submenu items.