add link to subcategory of mega menu

Posted in: Newspaper
Post count: 42

Hello
I’ve been reading through the documentation but I couldn’t figure out

1. how/where to assign the category (which I later choose to become a mega menu) to the pages I want to be subcategories of a mega menu link (toplevel)

2. how to add a link (not a page) to become a subcategory of a mega-menu link (toplevel)

any help is highly appreciated, thanks and cheers!

Post count: 23312

Hello Vittorio,

1,2)I am a bit confused about what you want to achieve. All the subcategories are made in panel, Posts->Categories section, like this -> http://screencast.com/t/WX4qu4uTRt5a All the settings for Mega Menu are made from there -> http://screencast.com/t/mV0gdMxWo
For more information, please try to read more carefully our documentation here -> https://forum.tagdiv.com/mega-menu/ because there you will find all the steps which are needed to follow if you want to bring the right results with the mega menu feature.
If is not what you mean, please provide a screen pointing to the desired result, it would help us to understand what you’re trying to do.

Thanks for your understanding!

Post count: 42

Hello,
thank you very much for your reply.

what I’d like to achieve is adding a link (like you can do in the standard wordpress menu section) to the subcategoys of the mega menu.

I have various plugins (for example the pdf-light-viewer) that build pages with fixed slugs (like …./pdf)
that are not editable. (and I could not assign a category to a page anyway – but only to a post)

on finanzwelt.de to the very right of the menu there is a link called “Mehr” (which means “more”) and I’d like to
add f.e. the missing pdf-page (that the plugin generates) with the permalink finanzwelt.de/pdf to the subcatgories (and brand the link as “eBooks”) and I have three more links that I would like to add under “Mehr”…

As this doesn’t seem to be possible I’m also totally willing to edit files to get my links into the subcategories of the menu – but I have no clue where to start. any hint?

thanks, cheers!

Post count: 23312

Hello Vittorio,

I have inspected your website again and I saw that you have a lot of errors in your console, as you can see here -> http://screencast.com/t/jEXko5e5tG2Q and also, I saw that you are using a lot of unknown plugins which are not tested with the theme and which can interact with the theme and cause these types of errors. Please try to disable all the plugins, leave just Visual Composer to active, clear all your caches and install only the plugins that come bundled with the theme and rule out any conflicting plugins. Also, if the problem is still there after this advice, please try to make a new clean install with the latest version of theme and required plugins and check the results.

Hope this helps!

Thanks for your understanding!

Post count: 42

Hello – and thanks for your reply and your off-topic inspection and concern.

I am aware of the counting numbers of warnungs though – through the use of old iframes that the client insists to use which on using which break modern conventions (especially cross-site scripting) and a few other but minor things which will be gone when exchanging the database next week and deleteing a few of the yet used plugins.

But: my question was HOW it is possible to add LINKS to the subcategories of a mega-menu. By now it looks as if the menu would only support post-categories but no links.

as I described (in lengths) above I have extensions that build pages (not posts) with fix slugs which is why I need to use links (to their very slugs) if I want to link to these pages in the menu. How can I add these links into the mega menus cubcategories (under “Mehr” to the very right of the main menu)?

Thanks, cheers!

Post count: 23312

Hello Vittorio,

If you want to add your desired link for subcategories, please notice that you should edit the td_block_mega_menu.php core file and add them all of these links, like this -> http://screencast.com/t/sc5wpjZl0es

Thanks for your message!

Post count: 42

Hello Catalin,
thanks for your reply.
I made it to add my links to the subcategories – my final question regarding this topic is:

How can I assign the same css-class (according to grafical behaviour, strong font, hover-effect etc.) to my newly added links as the normal sub-categories have / to make the links look like the subcategories?

I found the class of the subcategories (mega-menu-sub-cat-td_uid_6_57fde12c122f6 cur-sub-cat) and I guess I need to assign an ID to my links first, right?

Any help is highly appreciated!
A thousand thanks! Cheers, V.

Post count: 22421

Hello,
Well when you edit the php files you add a piece of html to the code. The anchor tags. You can assign a css class to any html element: http://www.w3schools.com/tags/att_global_class.asp
Then you can target that class with css and apply the style you want to it. You can then place the code in the theme panel->custom css box.
Thank you!

Post count: 42

Hello,
thanks for your reply.
since I want the links to look and behave just as the subcategories do I’m not tending to invent any new class and/or style. I thought I could simply assign the same class to the links that has been assigned to the subcategories – no?
Thanks, cheers, V.

Post count: 22421

Well you can do it, but you have to add it in manually. Either add the exact same class or a custom one but i;m not sure adding the same class will provide the same result as the mega menu list items. It depends on how the css was implemented and how your code looks. Test it out and see. I cannot say for sure.
Thanks.

Post count: 42

Hello again,
I just noticed that the added links don’t show up when I resize my browser to app-size (I am not using the extra mobile-theme-plugin) – but only categories show up on small windows (not the ones added with Catalin’s described method) – how can I make sure they also appear on the menu of small screens?

Thanks!

Post count: 22421

Hello,

Unfortunately the method provided to add extra links will not work in the mobile menu section. The mobile menu will only pull the subcategories from the mega menu. It is a different implementation. This is the problem with customization. It affects more parts of a website than you realize. That is why customization should be done by someone who has the time needed to think about all the implications a custom implementation has and test it out in all possible scenarios. We cannot provide that unfortunately as we do not have a customization department. Sorry but there is no simple way to alter the mobile menu in order to pull the extra links.
We try to help out where we can but when the customization gets time-consuming, we cannot afford to test out the possible outcomes and provide solutions. We suggest hiring a freelancer for this from sites like studio.envato.com.

Thank you!

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.