Hide column separator on iPhone
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Thu Jul 02, 2015 10:27 am
- Reply with quote
- Report this post
The Bikestore demo has the "Template menu". It has 2 columns as explained in the 2 columns article:
https://www.gavick.com/documentation/uncategorized/multiple-menu-columns-plugin
To make this work there must be added an extra menu item, that indicates the column.
There is an option to hide this 'column menu item' in the Link Type: Add Menu Title, which is set as a "Text Separator" and has the Title "Column1"
This works on a computer browser, but it is still visible on the iPhone.
How can I hide this menu item on iPhone?
Appreciated!
https://www.gavick.com/documentation/uncategorized/multiple-menu-columns-plugin
To make this work there must be added an extra menu item, that indicates the column.
There is an option to hide this 'column menu item' in the Link Type: Add Menu Title, which is set as a "Text Separator" and has the Title "Column1"
This works on a computer browser, but it is still visible on the iPhone.
How can I hide this menu item on iPhone?
Appreciated!
-

- Senior Boarder
- teitbite
- Sat Jul 04, 2015 7:00 pm
- Reply with quote
- Report this post
Hi
No easy way to do this I'm afraid. Try use a css like this:
where number in nth-child() is a number of element counting from top of the options.
No easy way to do this I'm afraid. Try use a css like this:
- Code: Select all
select#mobileMenu option:nth-child(7) {
display: none !important;
}
where number in nth-child() is a number of element counting from top of the options.
-

- Moderator
- GK User
- Tue Jul 07, 2015 3:26 pm
- Reply with quote
- Report this post
Does not work in a Safari browser. Safari is used on the iPhone. It works in Firefox. In Safari you can't assign "display: none" to an <option> element!
-

- Senior Boarder
- teitbite
- Wed Jul 08, 2015 9:11 pm
- Reply with quote
- Report this post
Hi
Ok, than try using a script to hide it. Javascript should not have such problems. Add this to the end of /layout/blocks/head.php file
Ok, than try using a script to hide it. Javascript should not have such problems. Add this to the end of /layout/blocks/head.php file
- Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('select#mobileMenu option:nth-child(7)').remove();
});})(jQuery)</script>
-

- Moderator
4 posts
• Page 1 of 1
