Attach image to custom menu in wordpress - wordpress

i'm trying to attach an image to a wordpress custom menu
for that i made a admin walker and added a link that uses the new wp.media (3.5) uploader with the featuredImage file frame.
everything is ok until i slidedown 2 menu options... then i attach a picture and the picture is set to both menu items like this
i use stopPropagations and still execute for every item displayed
this is the js http://pastebin.com/qBqt3tEN
any ideas?

Found the solution using another plugin idea
i created a gist with it
https://gist.github.com/hugosolar/6077109

Related

Not able to create Header in Elementor

I am not able to created Header in Elementor as i keep getting below error
“Sorry, the content area was not found in your page. You must call the_content function in the current template, in order for Elementor to work on this page.”
i have a one page website with header on the same page now i want to create Header Template so that i can add same Header to different pages as i have to show some post for that i want to create a second page which will show post and whenever i try to create Header i keep getting above error in elementor.
I am using Elementor Canvas for Home Page which i have created so if i need to add the_content function i am not sure where to add it?
UPDATE: It seems issue is due to ElementsKit Lite plugin as i have created menu using the same plugin and when i want to create new Header its not letting me so as there is some conflict with this plugin ElementsKit Lite
ElementsKit uses Elementor's template function. When creating a header template, are you doing it throuhgh the Elementor Theme Builder?
Wordpress Admin > Templates > Theme Builder > Add New
If you are Elementor pro. user navigate to
Templates > Theme Builder > Add New > Select type Header from the dropdown menu.
After Design the header design navigate to little top arrow beside Publish
Now click on Display Condition and add a condition for the entire site.
That's all.

I want to add Call to Action Button under Slider in wordpress

Hi I am new to wordpress thats why I am facing some issues in it.
One of them is when I add Call to Action Button Element using WPBakery Page Builder and preview my change then the content in preview is removed from the page but when I remove the Call to Action Button Element from page the preview loads all content again
Page without Call to Action Button Element
When I preview the above page I get all my content in Preview as below
Preview without Call to Action Button Element
But the problem occurs when I add Call to Action Button
Page after adding Call to Action Button
When I preview after adding element I get following preview
Preview after adding Call to Action Button
Here is the video link of this
https://drive.google.com/file/d/1WUjtVePoL2BYTE5q4UublMRt1LaK48CK/view?usp=sharing
You can use Soliloquy Slider Plugin for this. Install and active the plugin then go Go to your WordPress dashboard then Soliloquy » Add New. Give a title of your slider and add some image for the slider to show.
You can drag and drop image from your local file directory or can browse image. After adding the images just click on the publish button.
After publishing the slider in your right side screen some code and information will appear. You will need this information later to add this slider in any pages or posts.
Install and Activate Soliloquy’s Custom CSS Addon
Add CSS to Create a Call-to-Action Button
Add HTML for Call-to-Action Button
You can follow this tutorial for in depth explanation

How can i add download link in menu item in wordpress main menu?

I am try to set download link on main navigation menu menu item in wordpress.
Well, the easiest way to go is to zip your file, upload it via media library, then create custom link menu item and insert link to your zipped file. That's it :)
I had the same problem and created the plugin "Download Documents Menu" to solve it.
After installing it through the link https://wordpress.org/plugins/download-documents-menu/, you can add a custom link to your menu and check the option "Download".

Custom CSS with Headway Theme

I'm new to building websites.
I'm currently using Headway drag and drop Wordpress builder.
I've added Testimonial Widget by Aihrus plugin for testimonials, and I've added it to a widget box.
Problem is that I want to add custom CSS to it that I've seen on this site that is built for it, but the Headway theme doesn't allow you to go in and edit the theme. I've tried adding it to the block inside of the theme but it didn't work. I ended up going into the plugin and adding it to the CSS of the plugin, and it now half works.
Could someone please tell me what I'm doing wrong?
My site is rainorshinedogwalking.com
You can edit your live CSS here:
http://docs.headwaythemes.com/customer/portal/articles/1067360-editing-css-directly
What you type gets minified and added to your site's dynamic CSS file on page load.
All you have to is go through design editor click on the element you want to edit then right click. A pop up box should come up and it say edit element choose that then you will see something like that click it and add our own css

Creating Drupal custom menu and retrieve item in a template page

I would like to create a menu in Drupal backend, a custom menu which have xxx items.
How can I use the Drupal API to retrieve it in a template.tpl.php, and display items?
have a look at this page at drupal.org: Menu theming
-J
I created a custom menu using this method as well as some related ones. You will need to generate a custom module for your menu. You won't retrieve it in template.tpl.php but rather as a block (by creating a custom module). I would suggest you start there first.
I would do the following:
Create a custom menu
Create a new regions in your template .info file
Go to your theme and print the new region where the menu should seen
Go to the blogs and activate the new menu in the new region area
Maybe this should work for you.

Resources