Remembering My Power Of Choice

Write. Share your story. Write. Share your story. My coach kept telling me that, so I fired him. I have done things to please other people and I am DONE doing with that. I needed to be sure that I…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




WordPress Cheatsheet

A quick reference

As I spend more time using WordPress I have come to really appreciate some of its features. The simplicity in which you can customize and add features really shows why it is so used. Today I’m going to go over some of those features. We are going to discuss themes, plugins, and forms. Specifically, I am going to talk about the Understrap theme, Advanced Custom Fields plugin, and Gravity Forms which is technically a plugin, but with a very specific purpose. I am going to talk a little about all three, and then add some specific actions that I think are useful.

Understrap comes standard with one set menu, which is located on the top left of the page. It is set in the header file. You can add more menus if you like, and that's exactly what I’m going to show you what to do. This only takes a few steps, but it can get kind of confusing your first time, so I will walk you through it.

The first thing you need to do is go into your WordPress backend. Go down to appearance and select menus. There you can create a new menu.

Name the menu whatever you would like. I usually try to be descriptive if I can. After you click create, you will be able to add any pages or posts you have created. Now comes the trickier part, you will need to go into your functions.php file in your text editor. You will add the below code in that file, replacing the names with the names of your menu(s).

You will then add this code where ever you want your menu placed.

Once you have the plugin installed and activated you can go to work. The first thing you will need to do is go to the ADF tab on the side menu bar. Select add-new. You will then need to name the custom fieldset. ≈

The field name will be auto-generated after you put in the field label. Remember that you will need it shortly. Once you have entered your fields, you will need to select a location.

You will want to select where ever you want to put your field group. Since I will be making pages, I selected a page template, and right now I have the default template selected. I would probably have created a new template for the page I was making and selected that. Field groups can be in multiply locations, so you can reuse your field groups.

Similairly to Advance Custom Fields, Gravity Forms gets it’s own spot on the dashboard sidebar. Simply click add new, adn you will be prompted to name your from as well as provide a desription. Once you do that you can create a form to your liking. The editor allows you to add custom lines, as well as some presets.

Then to place the form you will need to go into your text editor, and put it where ever you want it. You have some options when it comes to adding a form. Here is all the options.

Here is what they mean:

So a basic call would look something like this. This snippet will display the form with an id of ‘1’; the title and description will not be displayed, the form itself will not display if it is inactive, and it will not use AJAX for form submission.

WordPress is already a conveinent way to create websites. With the usuage of themes and plugins it becomes even better. I’ve been really enjoying learning about WordPRess and all of its functionality. What are your favorite plugins? Let me know.

Add a comment

Related posts:

The T as technology.

Interesting technology in the life of someone who aspires to be a software developer is daily and is that way because every day is a good day to learn, in your learning you are getting flexible…

21 Fabulous Gender Neutral Nursery Ideas

Keeping the gender of your baby a surprise? Or simply tired of the cliched pink and blue color palette? With millennial parents wanting to create spaces that don’t conform to rigid stereotypes, the…

Thinking Upstream

As a Sociology major, approaching the world of Public Health seemed daunting until I discovered an intersection between the two: The Social Determinants of Health(SDOH) The Public Health field has…