I'm a very beginner in wordpress.
I need to add submenus with images in wordpress. Let's assume Main menu has menu1, menu2, menu3, ...etc. and I need to add submenu1, submenu2, submenu3, ...etc under the menu2 as sub dropdown menus with featured images. Can anyone tell how to do that in wordpress?
Can I use two menu plugins simultaneously?
You should look for a mega-menu plugin or maybe use a custom theme that already includes one.
this one is free and wellknown: https://de.wordpress.org/plugins/megamenu/ (wellnown is important because of the docu and the community if you need help). This will be the easiest thing if you're new to wordpress.
Correction after talkin to lee. He / she is right. The following part is the 'advanced" solution.
I, after 10 years of WP development, would code my own function, hooking into the wordpress image uploader. Many scripts are allready included in wordpress / many functions are working out of the box. Image upload is one of those scripts / functions.
So you can enqueue the script that wordpress delivers (see following link, 'Default Scripts Included and Registered by WordPress' > 'Media Upload'):
https://developer.wordpress.org/reference/functions/wp_enqueue_script/
As a real example how to implement it, would be way too much in this answer, I am giving you this link: http://code.tutsplus.com/tutorials/getting-started-with-the-wordpress-media-uploader--cms-22011 (usually i wouldn't paste a link as a answer, but as this is a side-answer / tip i guess it's okay).
All the best
Related
I am working on a landing page using HTML, CSS , and JavaScript which are the tolls I am familiar with, but the client informed me that he want a dashboard to update the contents , images ...etc . I am not familiar with WordPress and have not done any project before. So is there any way to create the website then convert it into WP or any other way to solve the issue I am facing ?
hope I found a solution here
Yes you can create the HTML first. Then you can convert it to a WordPress Theme. But would require some PHP coding and knowledge in WordPress template structure, functions, etc.
Or else, you can hire a developer for this purpose.
Or the more easier way for you would be to use a drag and drop content creation plugin like Elementor (personally, I like it more) or WPBakery or something else.
EDIT:
To answer your question in comment, there's a starter theme called Hello. You can use it as your canvas and start adding your components and layouts in it. There are many third party Elementor addons available for use (some are premium). I mean certain elements for your layout would already be there as an addon widget created by someone else or it might be already shipped with the Elementor plugin!
If you have some time to spare (I mean it's not an urgent project), I would suggest some time playing with it.
I am creating a plugin for Wordpress. I'm in doubt which hook I need to call to add custom content to the Wordpress side menu bar.
I want to add a widget with a chart over there.
I already researched, but I didn't find anything about it. It would be better if I didn't need to change the files in the sidebar but rather do everything for my plugin.
You're looking for two functions add_menu_page and add_submenu_page
Detailed instructions are here:
https://developer.wordpress.org/reference/functions/add_menu_page/
https://developer.wordpress.org/reference/functions/add_submenu_page/
I have created a carousel (not perfect yet - images are not showing but it could work) with custom control icons ("next" "back") with Boostrap:http://homepage160630-v3.bitballoon.com/travel
Being not familiar with PHP, I found it difficult to integrate a CMS like Wordpress into my code, so I am trying to re-create the same site as a Genesis/Studiopress Wordpress site based on the Genesis Sample theme:
http://paulheartfieldphotography.com/home/portraits/
My biggest problem is to create the carousel. I have looked at "Easing Slider" plugin: of course it does not allow to position the control icons or even to create my own.
I wonder what shall I do? try to create the custom carousel by transforming my Bootstrap code into PHP or try to edit the plugin? or something else?
https://en-gb.wordpress.org/plugins/easing-slider/
I think your best option is to get bootstrap shortcode plugin like this one https://wordpress.org/plugins/bootstrap-3-shortcodes/
However there are a bunch of them and you should check what works best for you. The link above is just to visualize.
i using the portfolio-theme studio 9 from simon bouchard.
A great theme with powerfull options.http://themes.simonbouchard.com/studio9/works/
now i would like to change the view of the work-section.
the featured image should change at hovering.
i search fpr the term and found a lot of stuff but always very special and i don´t know to code it in my theme. i´m not good at php or java.
my idea is to work with custom fields and to add a line of code that the image change to the custom field at hovering. i hope it is so simple and you can help me to fix the problem.
thank you so much!
i saw the effect at this page http://heydays.no and found it very very fresh.
The site you like uses ajax to cycle through multiple images when the block is hovered. Your theme probably does not support that. I suggest you look for a theme or plugin that offers the effect you want out-of-the-box. This one comes close and you may be able to set it to do a complete image switch instead of an effect. But the effects actually look cooler to me than the image switch.
I am using wordpress as a full on CMS on a site I am building. One thing I cant seem to figure out is how to link up my navigation bar to the pages I am creating in wordpress. I am using a sprite image hover navbar that is defined in the header.php file.
Does anyone have any idea how I can take a typical CSS sprite navbar and link it up with the pages I am creating within wordpress?
Typically when developing a WordPress theme you will want to use the wp_list_pages() function to display a list of the published WordPress pages. It spits it out in a unordered list already hyper linked and ready to go. You can then integrate your CSS with it as needed. If you need further customization to the navigation, like excluding certain pages, reordering, them etc.. check out this plugin here.
Another alternative would be to get your hands dirty with some PHP and other WordPress functions and create the navigation lists you need in your functions.php file.
Does this help any? I'm only marginally familiar with Wordpress interaction but it sounds like this should allow you to execute PHP code, and thus pull your navigation somehow.
http://wordpress.org/extend/plugins/php-execution-plugin/