How to add a submit form in post in wordpress - wordpress

Actually I want to create a plugin for wordpress and in my custom post type, I wan to create a popup which I append a div element on on document.body. In the document.body there is no form element available, when I checked the code of the web page with firebug, the form element on the web page only exist in the metabox. So, how could I do to add a file upload field to my div.

Try this one: i am sure this will helps you completely
Contact Form
Thanks

Related

Editing page in wordpress - page not in content manager

I need to edit a page on my wordpress site, but the page doesn't show on the "Pages" feature. This page is accessible over a top menu that I can edit over the themes/template editing. However I cannot find a way to edit it or even find it on my file manager.
This is the page URL: http://protector-canum.de/linkliste/
I just need to add some content to it.
Anyone aware of how I can get this done?
Thanks!
Check the css class of your body tag and look for post-id-XXXX
use that number in your admin url

Custom Page Templates in WordPress to show Content in specific layout

I want to create a custom page template in WordPress which shows Image Slideshow and then a video below it and finally some text - till now what I am able to do is play with sidebar, footer, header.
I can either remove them or keep them in my custom page templates but what I want to do is play with the page contents.
The Admin user should be able to see these sections in the Page Editor (WYSIWYG) when they choose the Template from the drop-down, so that they can accordingly add the correct content in correct place holders
Something like the attached screen-shot is showing
Is this possible in WordPress
Yes! It's possible to implement this! you can use https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431 or https://wordpress.org/plugins/siteorigin-panels/ plugin.
The first plugin allows you to create different page layout and save it. It also allows admin to choose page layout that admin has saved previously.
The second page builder plugin allows you to create template same way and allows admin to clone one page layout to another one.
Hope this will help you!

How and where to set description of a cq5 site?

The meta description that we get from a google search etc.
Do we set the meta information from cq side?
You usually set this in your base page template or which ever template your site is using to create pages.
You typically inherit from foundation/components/page and make suitable modifications to your page component(sling:resourceType of the template) depending on your requirement. You then override head.jsp to include your site specific meta tags.
Yes, we set all that information for each page in CQ page properties.
Go to siteadmin - http://localhost:4502/siteadmin
Navigate to the page on the left side of siteadmin so that you see the desired page on the right section of the page.
Right click on Page for which you want to set the meta information and then click on Properties.
In the dialog box that is opened, you can set all the meta information like Title, Keywords, Subtitle, Description in the first tab - Basic.
Save the dialog box by clicking on OK.

How to add a link to an anchor in Drupal 7?

I'm creating a website with Drupal 7.
I've a contact block at the bottom of the page (as a footer page), but I need to put a link into a menĂº with an anchor. I mean, when an user press that link, it must scroll down the page to the contact block.
How could I do this? I don't see anything.
Thank's
The module Menu attributes is your life saver, install it, so you can add the name attribute to your link
I believe you need to use the Menu token module in order to get the path to the current page for the anchor link. Path for the menu item should be something like:
[current-page:url:path]#footer
Its simple! You just create a link and go to page content edit option through Drupal admin. In the bottom of edit content page you will get a URL path settings, there is url alias field on there. You just put path in your field.

How to add textbox and buttons in BlogSpot post?

Currently, I can only add static posts to my blog. I can not use it for dynamic purposes like I can do it sites. I want to add text boxes and buttons depending on user input , I want to show dynamic content on my blog.
So it this possible?
I searched on the net but can only find that Blogspot does not allows text boxes and buttons to be added.
Please post some sample code for it.
Thanks,
Ashish
Blogspot posts doesn't allow to insert "input" tag in its posts directly by HTML Editor of posts. To do so you can follow the following steps
Goto the Templete from Admin portal of your blog
click on edit html & add JQuery.js (preferably which is hosted on google /JQueryUI.
in your post add a div in which you will add your input contents.
Now again in your templete html editor, write JQuery to handle event and adding the controls
for demo code you can view this article
Insert input elements in blogspot's post

Resources