linux4me2
Forum Replies Created
-
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourHi @leahasana,
I want to let you know that WordPress 5.9, due out the 25th of January, includes the new Navigation Block. The Navigation Block will collapse the menu for mobile devices when needed, and you can customize it as you like, so I think it will accomplish all you wanted without the need of the workaround.
Forum: Plugins
In reply to: [Menu In Post] Styling listHi @peter0013,
I haven’t heard from you in quite a while, so I’m going to mark this as resolved.
Forum: Plugins
In reply to: [Menu In Post] possible to make it look like a regular header menu ?Hi @obertscloud,
Sorry I didn’t get an email notification when you posted this and just noticed it.
While you could use CSS to make the list created by Menu In Post look like a regular navigation menu, there’s going to be a better option soon.
WordPress 5.9, arriving on January 25th, includes the new Navigation Block, which you can insert into a page or post. It will be less work than using Menu In Post, and won’t require an extra plugin. It also includes a setting to collapse the menu if required by the dimensions of the user’s device.
I’ve tested the Navigation Block both with a Block Theme and with a non-block theme, and it works well. I’m not sure if Visual Composer is compatible with it yet, but you can give it a try.
If that doesn’t work out, you can set the CSS of a Menu In Post list-style menu’s
lielements toinline-blockand get an inline list.Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourYou’re welcome! I’m glad you got it working the way you wanted.
I will go ahead and mark this one as resolved, but feel free to post again if needed.
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourBravo, @leahasana! Nice work!
If I size my browser to more than 768 pixels wide and less than 1200 pixels wide, the hamburger menu doesn’t appear, and the menu items wrap to additional lines, which I don’t think you intend. That’s because of this line:
@media screen and (max-width: 768px){You can see what I’m talking about if you use the Responsive Design Tools in Firefox (Ctrl+Shift+M) or in Chrome/Chromium (F12 to open Developer Tools, and then Ctrl+Shift+M). You can increment the width using the text box at the top of the window until you get the width where the menu items begin to wrap to the next line.
To fix that, just change the
768pxto the value where you want the hamburger menu to appear that will avoid the menu items wrapping to the next line.Other than that, I guess it should be “Technical Parameters” plural since you have more than one parameter, but it looks just like what I think you wanted, and you did it without having to add a plugin.
- This reply was modified 4 years, 5 months ago by linux4me2.
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourThat looks good.
To make the items display inline and give them some spacing, you’ll need something like:
#menu-60ghz-millimeter-wave-wireless-transceiver-with-clip li { display: inline-block; margin-right: 15px; }If you’re going with the tutorial’s layout and CSS, you won’t need that, of course.
I’d capitalize “Parameter” too, to make it match “Supported”.Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourYou know @leahasana, we may be making this more difficult than it need be.
You could just use a Custom HTML block instead of Menu In Post, and use the code snippet from that tutorial I linked above, substituting your menu for the one used in the tutorial, and adding their CSS to your theme’s Appearance > Customize > Additional CSS.
All you’d lose by not using Menu In Post is the convenience of updating the menus in Appearance > Menus, which it doesn’t look like you’d need, and the fewer plugins you run on your site, the better.
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourThis isn’t really a beginner task, but if you’re willing to put forth the effort, it’s a good task to move you beyond the beginner stage. 🙂
The first step is to convert your Menu In Post menu to a list as I mentioned above. You should also assign classes to the Menu In Post container and menu to:
- Make your CSS specific to those elements in case you do re-use your main menu CSS and want to override some aspects of it. For example, the font color of the main menu is black, which won’t show up on the black background where your new menu will be.
- Serve as placeholders in your code so that you can use your browser’s Developer Tools to do real-time edits to test existing classes, if you decide to try that.
Next, you should check out the Developer Tools in your browser of choice. Both Chrome/Chromium and Firefox come with developer tools that let you view the layout and the CSS associated with each element as well as altering it to test things without requiring you to make permanent changes.
Once you’ve changed the dropdown to a list, I can take another look and see if there’s anything I can suggest.
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourPlease do let me know how it goes.
Your main menu has a class “main-nav”, is based on list elements like what Menu In Post creates, and is a responsive hamburger menu, which may present another option. The ul and li elements also have classes you might be able to borrow for your new menu to achieve the results you want.
Forum: Plugins
In reply to: [Menu In Post] Styling listHi @peter0013,
It has been a month since I’ve heard from you. Did you get this to work?
Forum: Plugins
In reply to: [Menu In Post] WPML compatibilityHi @collimarco,
I haven’t heard back from you, so I’m going to mark this as resolved. If you have any more information about WPML compatibility, please let me know.
Forum: Plugins
In reply to: [Menu In Post] Mobile Menu and colourHi @leahasana,
Yes, you can display the three menu items in a row. Try setting the style of your menu to “List of Links” instead of “Dropdown” (or just delete the
style="dropdown"from your shortcode) and add CSS to display the list elements as “inline-block.”I’m not sure what you mean about matching the background. Once you change the menu over to a list, you may need to add some CSS to make the text white like your other text in that block, and since you’ll be using links, you may want to add CSS for hover and visited, but it may not be necessary depending on the other CSS of your theme.
It should be possible to use one of the many tutorials out there to use pure CSS to create a responsive hamburger menu. Try searching for the terms “css responsive hamburger menu”. This one is promising, and it looks like it could be adapted for the elements of Menu In Post. It’s nice that it uses a character code for the hamburger icon instead of an icon or image.
The main thing is to make sure you assign custom class(es) in your Menu In Post shortcode to use in your new CSS so the CSS applies only to it, and not to other lists on your site.
Forum: Plugins
In reply to: [Menu In Post] Styling listDid you add the Javascript? The Javascript is what does the magic with the dropdown, I believe:
a.setAttribute("class", "select-selected");Forum: Plugins
In reply to: [Menu In Post] Styling listHi Peter,
I’m with you now. I believe what you see with the drop-down part of the list is dependent on the browser, as what I see is different than what you show in your second image.
Take a look at this article at W3 Schools and see if it helps. With the custom class you added to your Menu In Post shortcode, I think you can get the effect you want, but note that they are using Javascript as well to accomplish it.
Forum: Plugins
In reply to: [Menu In Post] Styling listHi Peter,
Did you already fix this? When I look at your page, it doesn’t look like the image you linked to above.
When you create a dropdown menu shortcode in the plugin, it doesn’t include any specific CSS, just the HTML to build the menu, so the styling of the select element it creates will be inherited from your theme, and may not include classes specific to your theme that are used for other select elements the theme creates.
What I see on your page now is this:
.mip-drop-nav { margin-top: 5px; color: white; font-weight: 700; }so I think you already added a class and fixed it.