i18n how to set the parent menu no-clickable? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: i18n how to set the parent menu no-clickable? (/showthread.php?tid=9490) |
i18n how to set the parent menu no-clickable? - tomkow - 2017-01-23 Hi I use i18n plugin. Is anyone know how to set the parent menu no-clickable? -option1 clicable -option2 <--- I want this no clickable --child21 clicable --child22 clicable -option3 clicable Thanks Tom RE: i18n how to set the parent menu no-clickable? - AleksK - 2017-02-16 Hi There are two ways that I know of: First(simple but inconvenient): i18n plugin + menu rendering (http://mvlcek.bplaced.net/multi-level-navigation/navigation-rendering) href attribute, remove the output from the reference, and then lose each parent menu link. Validator allows you to create <a> tag without HREF - no error <a> tag saved for easier styling with CSS Example code without HREF: use a component in code second row href="<?php echo htmlspecialchars($item->link); ?>" must be removed Code: <li class="<?php echo $item->classes; ?>"> Second (a little more complicated, but perfectly adjusted): i18n plugin + Сustom Fields plugin + menu rendering (http://mvlcek.bplaced.net/multi-level-navigation/navigation-rendering) http://mvlcek.bplaced.net/get-simple/custom-fields This method allows you to choose where post a link and where not to post a link. very well described here Non-Clickable Links for il8N Navigation? RE: i18n how to set the parent menu no-clickable? - tomkow - 2017-02-21 (2017-02-16, 07:46:04)AleksK Wrote: Hi Thanks AleksK for your solution but I found another way, just style sheet modification: .sf-menu > .services > a, .rd-with-ul:active { cursor: default; pointer-events: none; } .rd-with-ul { cursor: default; } .rd-with-ul > span { cursor: pointer; pointer-events: all; } |