Hey Guys,
Ok maybe I’m blind but I can’t see where I can edit whats in the Mobile Menues when someone is on a smartphone.
1. I want to take out the social sharing line
2. I want the menu to only go over about 2/3 of the screen if possible when it expands
3. Where do I control the menu options?
4. I want to put a smaller menu in there with links to our terms, about and those legal pages.
Here is a screenshot:
http://screencast.com/t/bkxjjZUcvX3
I have most other things figured out but am stuck…. Can you point me to the right documentation or menus to adjust?
Thanks,
Joel
-
This topic was modified 10 years by
joelpeterson.
HI
1. Try this css in theme panel > custom code > custom css to hide social icons from mobile menu: http://screencast.com/t/rd8nCpK0fM
.td-menu-socials {
display: none;
}
2. The current menu was designed to go over the entire screen and to change this are required some changes in menu’s structure. This is a complex task which involve lots of customizations and unfortunately I can’t provide a solution for the moment. If you really need this and you’re not aware of the steps you need to take in this regard my advice is to k=look for someone who can help you with implementation or hire a freelancer to do it for you as we can’t offer custom work at the moment.
3. The colors for mobile min can be changed from theme panel > theme colors: http://screencast.com/t/CmZfdVcrPB
4. You can make a add a new menu for mobile only editing theme’s code as follows:
– edit td_menu.php and add this line of code here: http://screencast.com/t/Rf59isOchm
'custom-menu' => 'Custom menu for mobiles'
– edit menu-mobile.php and add thei code here: http://screencast.com/t/ybU3TZ4yLhvu
wp_nav_menu(array(;
'theme_location' => 'custom-menu',
'menu_class'=> 'td-mobile-main-menu',
'fallback_cb' => 'td_wp_no_mobile_menu',
'link_after' => '',
'walker' => new td_walker_mobile_menu()
))
– go to Appearance > Menu and create a new menu, then assign it this location: http://screencast.com/t/8FQyVVnec3i The result should be like here: http://screencast.com/t/DqZniIQXAc
Hope this helps.
Thanks!
Hi Guys,
I’ve successfully used the customisations you’ve provided above for a custom mobile menu. However, after updating to 7.7.1 it no longer works.
I have checked both menu-mobile.php and td_menu.php to see if there were any coding differences, but they seem the same as in previous versions of Newspaper.
Can you let me know if there are any other files which might now be interfering in this code working correctly? To be clear, I already updated both menu-mobile.php and td_menu.php to the modified code and added it to 7.7.1 before I uploaded it to my site.
Would welcome any input you might have. Thanks in advance 🙂
Hello MESOTU,
Meanwhile, the theme was made other changes in code, and the above solution does not work, sorry! Please notice that the theme has a very complex code and this is not a simple task for adding a new custom menu for mobile, sorry! Notice that we have introduced the Mobile theme which allows you to add a new custom menu for mobile devices and this can be the solution for your request. For more information about our Mobile Theme Concept, please check our useful guide here -> https://forum.tagdiv.com/the-mobile-theme/
Thanks for your understanding!
Hi Catalin,
Thanks for your response. I’m able to do my own custom coding but would just need to know from you which files and code I would need to modify. Clearly there are more files in play now than just the menu-mobile.php and td_menu.php. Would welcome any info you can provide.
The mobile theme doesn’t really help me since I’m not just displaying articles on the front page.
According to your theme information:
“Homepage – the “Mobile Theme” comes with a single predefined page template that includes two section:
top grid – displays 3 featured posts (posts included in the Featured category)
latest articles – displays the latest articles
If you want to display the same elements on both mobile and desktop, don’t use the mobile theme, the main theme is already capable of this with it’s responsive design for mobiles.”
The latter is what I’m currently doing, so unfortunately the mobile would not meet my needs.
Cheers 🙂
-
This reply was modified 9 years by
MESOTU.
Hello MESOTU,
Furthermore investigations, I noticed that the above solution works as expected. I have tested on my side and the menu for mobile works like a charm. You should only make a new registration in td_menu.php with your new menu for mobile, like this -> https://www.screencast.com/t/QjYkL3EdnQE and then, in mobile-menu.php you should declare from which you want to be the source of the menu for mobile devices, like this -> https://www.screencast.com/t/sTbFYXUCbtm7 and the result you should see here -> https://www.screencast.com/t/roqcjV1c -> https://www.screencast.com/t/N2mnoolv
Thanks for your understanding!
Hi Catalin,
Most appreciated. It actually looks pretty easy and is similar to what I did on my old coding, but for some reason it’s breaking the theme. Here are screen shots of the coding I did:
menu-mobile.php – http://www.screencast.com/t/UB4W9lUgl11k
td_menu.php – http://www.screencast.com/t/9Wn8b6yB
I thought it looked the same as your examples, but perhaps I’m missing something obvious in plain view 🙂 Are there any other changes I need to make that perhaps I’m overlooking?
Would welcome any suggestions.
Cheers 🙂
Hello MESOTU,
It is strange! I have tested again on my side and works like a charm. Try to replace the menu-mobile.php file with the code from here -> http://pastebin.com/FXSwrwxP and the td_menu.php file with the code from here -> http://pastebin.com/Y9yfry7D If should working.
Hope this helps!
Thanks for the message!
I followed your above guide:
– edit td_menu.php
'custom-menu' => 'Custom menu for mobiles'
– edit menu-mobile.php
wp_nav_menu(array(
'theme_location' => 'custom-menu',
'menu_class'=> 'td-mobile-main-menu',
'fallback_cb' => 'td_wp_no_mobile_menu',
'link_after' => '',
'walker' => new td_walker_mobile_menu()
));
and all is working perfectly for the mobile menu.
But now my desktop main menu has lost its styles.
Hello zumaxb,
Please notice that the above solution work as expected and my end and for other clients, sorry! I suppose that your problems are on your backend, sorry! Probably you have any others customizations through your code, probably you use a child theme and that’s why you lost the main menu style. Try it with more attention and try to find where is the problem, because this solution works as expected and it is tested.
Thanks for your understanding!
Hi Catalin,
Yes, I am using a child theme and have imported/copied the respective files & folders from the main theme to the child.
I totally understand that you do not support these kinds of detailed adjustments.
Only one more question:
Are there other files I should also copy to the child theme? may that be the problem? Or is it simply a matter of finding the proper CSS rules in my custom CSS?
Hello zumaxb,
Please ensure that you are using the proper child theme version which comes bundled with the theme core files. Also, ensure that your data/files overwritten with child theme are according to our documentation here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks for your understanding!
Hello zumaxb,
If you will deeply consult our guide regarding on child theme, you will see that the files which are included in wp booster core, cannot be overwritten by child theme, sorry! If you want to make the above modifications in the child theme, it is not possible because you will have to make some changes in td_menu.php, files which is included in wp_booster and it cannot be overwritten by child theme.
Thanks for your understanding!
How is the situation of this subject after this hole and a half year? It’s still not possible to edit these files in child theme?
If not, can you suggest another solution? I don’t want to lose the changes when I update the theme, and I need this mobile menu feature.
Thanks!
Hello xavig,
If you want to make some custom modification in the child theme, please check the documentation to see how kind of files can be overwritten in child theme from here -> https://forum.tagdiv.com/newsmag-child-theme-support/
Thanks.
Hello Catalin. I did this two changes:
– https://www.screencast.com/t/sTbFYXUCbtm7
– https://www.screencast.com/t/QjYkL3EdnQE
in my child theme and it works perfect!
Now I have a specific main menu for mobile and another for desktop. In mobile it looks awesome but I lost the style in main menu for desktop.
Can you help me to fix it? Thanks very much
Hello xavig,
Unfortunately, all of these changes involves doing such additional customizations and we cannot provide something like this at the moment, sorry! If you want to have more options, in this case, you should implement it yourself through the code because we cannot provide custom work at the moment, sorry! Also, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you! Usually, we recommend the developer from studio.envato.com
Another alternative for you would be to use a mobile theme which allows you to have two different menus for mobile and desktop.
Thanks for your understanding!
