How can I customise horizontal menu prestashop module - php

I would like to edit the prestashop module (Top horizontal menu v1.3) I have some categories setup so I have Parent>Child, Child on the menu. I would like to disable the link on the parent category so that it does not link to a page only the child categories link to pages.
Thx for the help.

I'm not experienced with Prestashop, but thought I would provide some sort of feedback anyway.
As a rule of thumb, whenever I'm making a parent>child navigation I like to make the parent link to a [parent] landing page, or if possible a request to the same page on the server which modifies the navigation output on the server side. This way, if a client has Javascript disabled, or if there is ever a bug in your Javascript, it does not render your navigation useless.
Might be something to think about. I don't think any item in a navigation should not link to somewhere.
Sorry I couldn't provide any specific help regarding Prestashop.

Related

Change CSS style according to URL

I have looked everywhere, but couldn't found a simple solution.
CSS would be best.
Basically I want to change the link css style according to the URL.
So, let's say, there are three menu items:
HOME (https://www.example.com)
PRODUCTS (https://www.example.com/products)
SERVICES (https://www.example.com/services)
I want that, when a visitor is ON https://www.example.com, the HOME link would be Blue.
All other - black.
When on /products, then PRODUCTS would be in blue and all others (HOME and SERVICES) in black.
Example below:
Any kind of help would be appreciated.
Thanks.
P.S. not on hover, but when a visitor is on the specific URL.
You should use Wordpress' menu system.
In that case, the active menu item will automatically be marked with class current-menu-item
Then you'll be able to style it differently than others with css
Detailed information on how to declare a custom menu area in your WordPress theme
https://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/

Drupal - how to hide headbar Menu in a page?

my website is : https://www.edqm.eu/
I need to create a new page, but I want a page without headbar menu.
Is it possible ?
If Yes, How is it possible to do it ?
the website is built with Drupal 7.
I'm not expert in dev and in Drupal.
Thank you for your help.
it should be possible and depending on your site setup, it can be even pretty simple. You have to find the menu block in /admin/structure/blocks and go to configure on the block, there you should see visibility settings and you can filter out your page.
Hope this helps.
Your header menu can be in:
Some block - just go to Structure -> Blocks from admin menu, find that block, click "Configure" link and in "Visibility settings" hide it by some criteria that is most suitable for your case (content type, page path..). If you have hard time finding which block is that use some inspection tool like Firebug or similar, to see block id. But if site is made well, when you are logged in as admin you'll have that "Configure" gear icon when hovering the block.
Menu can be part of some template file, most likely page template (/sites/all/themes/your_theme/templates/page.tpl.php). If that's the case then you can clone the template file and name the clone following the special naming convention so just the page you want to change will use that template. Then you can modify the clone and remove part that generates the menu. Check out this page for theming names suggestions:
https://www.drupal.org/docs/7/theming/template-theme-hook-suggestions

hide main content component for some menu items, joomla 1.7

I know how to hide the main component from the homepage, what I need is to do the same thing for all my menu items also. Basically, what I want is to create multiple homepages, so every category I choose has certain modules that display content.
How to show only modules, not the article when you click on a menu item (if it is linked to a single article)?
I know I can use some of the extensions that can embed modules to an article, but don't want to do it like that. I know that there are components that simulate homepages, don't want it like that either.
I hope my question is clear enough, I'm using Joomla 1.7.
I have found a simple solution!
Installed T3 framework, which allows the removal of main content component for the menu items you choose.

Joomla menu system & dropdown menu in template

I am trying to make a simple drop down menu system for my Joomla site. But Joomla menu is completely confusing me. How does a joomla menu work?
For eg: In the image below the whole blue bar is a menu? or each item like 'Projects' is a menu?
Now I can make two pages for Project 1 & Project 2 but where will the 'Projects' link point to? If it does point somewhere then incase of no JavaScript I'd like to point it to a page that shows a list of the menu items.
How do I place my menu at this place in my template?
Why is there a default MainMenu and why do I need to use a menu to show the main content on my site. Shouldn't menus be used for making menus. And I only needed a menu item to show my content not that whole Main Menu. The main confusion is the Main Menu.
I don't wanna use a module coz I couldn't find a good one for 1.7 that uses jQuery (All JavaScript on my site is done with jQuery) and I read somewhere it can be made within the template.
All I want is to somehow place menu items lists inside the respective anchors up top so I can just show/hide them as dropdowns with jQuery.
I hope I haven't made the question confusing pointing to what I need to make. It's just that I'm super confused myself.
Please help.
I appreciate the help.
Thanks Alot.
Joomla menus are generated thru modules. In most cases mod_mainmenu. Theese modules you place in module positions. If your menue should be horizontal on top, then you put your mod_mainmenu module in the position "top". Be aware that every template uses different position names.

how to make drupal pages into menus and submenus like administrator menu

I'am new to Drupal, i just want to create a website which contains pages like about us, contact us and other static information that may be changed after a long time.
Now i can create the pages and sub pages to main pages. The links are displaying on the top of the logo and the sub pages were showing on the side of the main page.
i installed the dhtml_menu module but not working.
are there any changes required to dhtml_menu module to make work for pages?
or
i need to use any other module?
please help me to solve this issue
Thanks.
Your question is pretty confusing. If you just want to display the pages in a tree just like the administration menu (which seems to be what you're asking), then you don't need any extra modules.
Just create your pages and put them all in the primary menu. Then, once your pages are created add the Primary links block (in Administer, Blocks) anywhere you want. That block will display the navigation tree of your pages, just like the administrator menu does.
edit
Oh, so you want the drop down menus? Then you don't want dhtml_menu (which will only prevent unneccessary page loading when you open pages), but need something like simplemenu. Create your primary links, goto Administer, Site Configuration, SimpleMenu and set the "Menu" setting to "< Primary links >". That will display a drop down menu bar to navigate through your site...
First i need to say thanks to wimvds. "Thankyou wimvds for your edit it take me to find more modules and themes".
found the solution in a theme "admire_grunge" the drop down menu needs to be defined in the themes it self.
found some more themes that work like this.
Thanks.

Categories