Tag: wordpress tutorials

  • 5 Simple Tips To Make Your Website Look Good

    5-Simple-Ways-To-Make-Your-Website-Look-GoodIn general, one thing that most people tend to overlook is today’s demand for functional design and aesthetics. While not all of us may be aware of the extent of just how much it matters, the fact remains that design is a very crucial factor towards success—any kind of success– including your website’s. Yes, your content is an important key towards reeling your audience in, but how your site looks will definitely be a determining factor as well.

    Here are some basic tips on what you can do to improve your website’s design.

    Add high-quality images

    You want to add the best quality images on your website that reflect your brand style, but if you don’t have a high-resolution camera or the money to pay a photographer, you can get free stock photos from sources like Pexels and Pixabay. Images should pertain directly to the content of your site. Including images is always better than no images at all.

    Choose the right colors

    booneselections
    Lawrence Boone Selections uses black to add a sense of luxury and value to their website
    juicebox
    Juicebox used this zesty combination for people to get that organic and fresh that the brand represents

    A website’s color scheme plays a big role in creating the proper tone and mood for your brand. Picking a nice color doesn’t necessary mean its the right one. Each color sends off a different message and response. Colors is one of the first things that site visitors notice and it can actually impact your website’s success.

    Pick two to three base colors at most for your design. If you feel the need to add more color, you can utilize the tints and shades of your base colors. In color theory, a tint is the mixture of a color with white, which increases lightness while shade is the mixture of a color with white, which reduces lightness.

    Additional Tip: There are great tools such as Adobe Colour CC and Coolors to make picking colors easier.

    Use contrasting typefaces

    Font Pairing There are more fonts other than Arial, Georgia and Times New Roman. Google Web Fonts offer a variety of typefaces you can use for free on your site. Just like with choosing colors you can easily over do fonts, so I suggest you do not use more than two typefaces on your website. Most well-designed websites use two typefaces only, one for the headlines and one for the body text.

    Paring two typefaces can be hard even for designers. You could keep it simple by playing around with two different fonts from one typeface. If a second typeface is necessary, choose something that contrasts well against your first typeface. Normally, combining a serif font and sans-serif works well together. Another important tip is to choose typefaces that matches your company’s style. You could have the nicest looking font in the wold, but when used in the wrong context, it could still look terrible.

    Keep it clean using whitespace

    Whitespace is one of the easiest and most effective ways to create a visually effective website. Your website should look well organized and clutter free, directing users exactly where they need to go. Make sure elements stand out and are grouped together by using whitespace properly.

    Make it mobile-friendly

    People are probably going to visit your site at different times using different devices and screen sizes. While content is important, consistency across devices provides a better user-experience for anyone who visits your site. It makes it easier for users to share and link contents on your website to social media platforms on mobile. On top of that, Google prioritizes responsive websites on search results.

    Additional Tip: Using Page Builder Sandwich on your website will automatically enable mobile viewing and adjust it for mobile screen size.

    Conclusion

    Remember: Underestimating the power of design is one of the worst mistakes you can make when building your website. You don’t have to exert too much effort when designing your website, of course, but in the meantime, simply following these tips can ensure that your site doesn’t emit any feelings of disapproval from your audience.

  • Where Things Get a Little Technical: How We Made Our Version of Shortcode Mapping Happen

    How-We-Made-Our-Version-Of-Shortcode-Mapping-Happen-2On the previous article, we’ve discussed the basics of shortcode mapping and how you can get access to its sweet benefits. We’ve decided to split the article featuring the Page Builder Sandwich version of Shortcode Mapping, as the following write-up may get a little more technical.

    Below are more in-depth descriptions of the inner workings of our shortcode mapping feature, and how we got it to work.

    An Automated Process

    In order to decide which plugins to include in the shortcode mapper, we built an automated script that will gather the top plugins in the WordPress plugin directory based on the following criteria:

    • Within the 1,000 popular, top-rated and updated plugins,With at least 4,000 active installs,
    • With at least 4,000 active installs,
    • With at least 20 ratings, and;
    • With at least a 3-star average rating

    We run this query daily against the WordPress plugin directory. These filters ensure that we get a list of good quality plugins that a lot of people use. During the time this was written, this criteria resulted in 800 plugins. That’s a lot. Like, a lot.

    Some of the most popular plugins detected for shortcode mapping.
    Some of the most popular plugins detected for shortcode mapping.

    We then run a series of automated checks on each plugin’s source code to find out whether it contains any shortcodes, and then we try and find all of those shortcodes, including all their attributes. Crunching the data, this resulted in over 2,000 shortcodes. Double woah. Detected shortcodes are then inputted into the shortcode mapping database for manual inspection.

    By the end of this process, we would end up with a huge list of plugins, and what their possible shortcodes are. It’s now a matter of cleaning this data up to make sure everything’s correct.

    A Manual Process

    This is probably the hardest part of the whole mapping system. Plugin code comes in different forms and sizes, not all shortcodes are automatically detected by our scripts. Even though the WordPress Codex says to use the function `shortcode_atts` to filter a shortcode’s attributes, this is only a recommendation and not everyone does it. There is also no sure-fire way to check the innards of a shortcode when a plugin is installed.

    To so make sure that we get all the shortcodes and their attributes right, we created a front end area dedicated to editing shortcodes and attributes and is built using AngularJS and Bootstrap.

    Bootstrap & AngularJS interface for fixing up all the mapped shortcodes.
    Bootstrap & AngularJS interface for fixing up all the mapped shortcodes.

    We’ll have to manually go through each and every plugin and check their shortcode documentation and make sure that all the data we have is correct.

    Even though this is painstakingly tedious, there are some bright sides to having an automated process:

    • According to our early stats, only around 1 in every 2 plugins have shortcodes.
    • Half of the detected shortcodes have no attributes (but a portion of this may be false positives)
    • By getting only good quality plugins, most likely they have shortcode documentation

    When all of a plugin’s shortcodes have been checked, only then will the server start distributing the shortcode mappings of that plugin to the users.

    A Rest API Call

    The last piece of the puzzle is the plugin itself. The concept here is simple: find out what plugins are active, what theme the site is using and what shortcodes are available, then ask the shortcode mapping database whether it has mappings. For this we created a custom WP REST API endpoint that all clients ping to get their latest shortcode mappings.

    The Future: Crowdsourcing

    Manually checking each plugin requires a lot of time and effort. Once the shortcode mapping platform is stable, we plan on opening up shortcode mapping to everyone. This means that everyone can help out in adding shortcodes.

    You might be thinking, “why would I help map out shortcodes? What’s in it for me?” Well, a few things come into mind on why people would want to help out:

    1. If you have created a plugin, and we haven’t caught it yet because of the criteria above, (and it’s in the WordPress plugin directory) then you can add the mappings yourself. Your plugin would become fully supported by PBS!
    2. Since we’ll only be dealing with those in the WordPress plugin directory in the automated process, premium plugin & theme authors won’t become included. So if you have one, then you can also your shortcode mappings for those.
    3. And for the non-plugin creators, we can reward those who help. To make shortcode mapping an enticing endeavor, we can reward happy helpers with a personal license, or an upgrade to a premium license of PBS!

    Sign up to Our Newsletter

    The shortcode mapping functionality will be out for our customers tentatively on August 12  August 15  August 16, 2016. Not all shortcodes will be mapped by this time (our estimate is maybe 100 plugins), but mapping will be continuously done and customers will get them as soon as new ones roll out.

    Sign up to our newsletter to get news on shortcode mapping, when we’ll release it, and when we open shortcode mapping to the public!

  • What In The World Are Shortcodes, Anyway?

    What-Are-Shortcodes-AnywayIf you’ve noticed, one of WordPress’ rules of thumb is to always, always make things a little easier for everyone– newbies and experienced developers alike. One of the ways they get to achieve this goal is through the use of shortcodes.

    The WordPress.com Support Page defines them as such:

    shtSounds pretty simple. Now, If you haven’t heard of shortcodes before this article, and you don’t know what they look like, they’re those archaic code-like text wrapped in square brackets.

    Compared to normal code, which typically looks like this:

    HTML5-video-tag-sample-code
    (Erm. What?)

    Shortcodes in general look a little something like this:

    embed_shortcode
    (Easy-peasy.)

    …and if you’re a developer (or heck, even someone who’s been around a computer at least twice), you’ll probably agree that mere the act of typing and clicking to get one measly task done can eat up lot of your time. For the same reason we have keyboard shortcuts, shortcodes exist to make things easier for all of us, so we save up time in order to do and create better things; they’re very much like shortcut keys in that they have that very same purpose.

    Now let’s go back to this specific piece of shortcode, the same as above:

    embed-shortcode This specific one is called the embed shortcode and is built-in by default in WordPress. It embeds the video from the URL into your content. If you’re on WordPress right now, you can copy and paste the above shortcode in your site if you want to give it a spin.

    Shortcodes aren’t the perfect solution to time-saving, though. In our previous article, we delve in deeper into why shortcodes have its own share of cons, and what the Sandwich Team’s brewing up in order to fix them.

    For now though, feel free to tinker with shortcodes and see just what they can do for you.

    Happy Site-Building!

  • 5 Reasons Why Whitespace Matters

    Reasons-Why-Whitespace-MattersBasically, whitespace, at its most basic definition, is the space around and between all the elements of a composition that is left unmarked. It’s not just a waste of screen space, as most websites owners think. When used well, whitespaces can actually provide benefits to better promote a product. It is an important key to creating good design and it makes a website better in every way.

    Although the name whitespace implies that the space is white, it doesn’t always have to be literally white. Whitespace can actually be any color—It can even have a subtle pattern or texture. It’s an area that you don’t want the eye to focus on. Alternatively, it’s called a negative space.

    So, why does whitespace matter?

    newsfeed
    Image Source: News Feed

    Reason #1: Improves readability

    Whitespace between baselines and paragraphs actually help people comfortably read all of the content on the site. Adjusting small details of your site (like line-spacing/leading or the letter-spacing) could make a huge difference in make reading easier.

    The goal is to make people want to keep reading by designing layouts that are easy on the eyes.

    hpmagicwords
    Image Source: HP Magic Words

    Reason #2: Speeds up interaction

    Let’s be honest: most of your visitors won’t have enough patience to look thoroughly when browsing through websites. When a website looks cluttered, it keeps users distracted from finding what they are looking for.

    Whitespaces should help lead the viewer around the page. Less elements competing for attention plus proper use of whitespaces can prevent distractions that slows visitors down.

    google
    Image Source: Google

    Reason #3: Drive attention to the right elements

    Whitespace can give users visual cues on where they should be looking. When used in a correct manner, whitespaces help emphasize information and draw attention to a particular area on you website.

    Remember, if everything stands out, nothing does.

    Image Source: Pocket Penguins

    Reason #4: First impressions matter

    The look and feel of a website is the main key to good first impressions. Good first impressions often leads to longer visit duration. Too little whitespace can make your website look cheap and unreliable. Visitors won’t think the site or the brand is credible unless it looks attractive. Having a good amount of whitespace helps create the right tone for your website. Whitespace can be a way to communicate ingenuity, freshness, and sometimes, elegance.

    Tip: Here’s an idea on how to make your web design simple and familiar.

    flockknitwear
    Image Source: Flock Knitwear

    Reason #5: Helps create breathing room and balance

    A balanced design doesn’t mean symmetrical. A large design element can be balanced by a few smaller once. Adding whitespace is a great way to balance different-sized design elements on your page. Create a flow so the users eyes won’t dart all over the place. A good design should be able to guide the user from one point to another without confusing the visitor.

    Conclusion

    Next time you visit a website and find yourself staying a while, think about what made you stay and read. Do you think the line-spacing makes an article easier to read? Does the experience make you want to keep coming back for more? Did you have a hard time looking for the navigation?

    Take note of the good application of whitespace on the website. If you think it can also work in your website, learn to apply and manage how much space you should allocate on your element until you think you’ve conveyed the right tone and readability without sacrificing the “flow” you want for your website.

    The ultimate goal of any website is communication. Visual appeal goes hand in hand with the success of your website.

  • 3 Things to Consider Before Diving Into Page Builders

    3-Things-to-Consider-Before-Diving-Into-Page-BuildersThere’s an off-chance you’re here because you’ve heard that PBS is quite possibly one of the quickest shortcuts to site building. While page builders, in general, exist to make things easier, there are still a few things you might want to take into account before diving deeper into this particular realm of WordPress development.

    Learning WordPress: A Crucial Page Builder Prerequisite

    This is probably the most obvious item on this list, but still the most important one. Page Builders aren’t quite purchasable on their own, unfortunately. They come in the form of plugins in WordPress, which you’ll need to install and learn in order to manipulate. Rest assured that WordPress is one of the easiest and most legitimate ways to create a website. You won’t regret knowing something technical, considering the age we are in right now. There is a difference between WordPress.com and WordPress.org, and  knowing which one caters to your need saves time too!

    If you’re a little intimidated by the abundance of some of the technical terms in this article, though, fret not. There are few helpful sites you can visit to help get you started. Some of these areWordPress Codex, and Treehouse. It houses WordPress tips  and website building, depending on your need and level of knowledge.

    You might want to test out the waters first, just to be sure

    It’s always a good idea to give free and/or trial versions a go before making any huge purchases you might end up regretting in the future. Thankfully, most page builders come with free/demo versions. Of course, we could also look into  a ton of reliable reviews about page builders while otherscompares and contrasts  page builders.  Make sure to weigh in your options carefully!

    Aside from going through articles and reviews, one of the things we like about WordPress is that it has a huge community behind it. There are individuals, teams, and even businesses, willing to lend a helping hand their fellow WordPress users, especially new ones like you! The community basically works on a pay-it-forward scheme than a give-and-take.

    Designs make a huge difference

    WordPress Enthusiast Donna Fontenot Cavalier makes a very good point regarding drag and drop Page Builders, and the importance of basic design. While drag-and-drop builders like PBS can save you a lot of time, basic know-how and at least some familiarity in aesthetics is another crucial thing to consider when creating websites. Imagine a scenario– let’s say you get your hands on a nifty page builder of your choice: that’s great! But then let’s say you’re a person who doesn’t exactly have the best eye for art, design and functionality: uh-oh.

    Don’t worry, though. Page Builder Sandwich isn’t just a Page Builder; our team is also dedicated to giving other WordPress users a hand, too. So if you’re dealing with a bit of trouble regarding design, don’t worry– we have a bunch of articles here on the PBS Blog with a lot of useful tips to help you get started. That way, you get to do more, learn more, and worry less.

    Remember, if you have any questions or concerns regarding page builders, or anything relating to the items above, feel free to drop us a line in the comments section below. We’re always happy to help our customers out.

    Happy Site-Building!

  • WordPress.com VS WordPress.org

    Wordpress-Com-VS-Wordpress-OrgIf you’re relatively new to building websites, chances are, you probably aren’t familiar with the great WordPress.com vs WordPress.org debate. You might not have even known that one of the other exists, and the different pros and cons of each one. So what is, pray tell, this great debate between using WordPress.com, and WordPress.org? Is the other one just a cheap rip-off waiting to get sued?

    Well, no.

    The debate, in a nutshell, is about which of these two WordPress services is a better fit for the website you’re trying to build. Neither is a rip-off of the other, and both sites are owned by WordPress; it’s just that one (.com), is a more non-developer-friendly version than the other, and .org has a lot less limitations when it comes to site building, compared to .com.

    “How do I know which one I need, though?”

    The answer to this question all depends on your future website’s needs. There is no one WordPress entity that’s objectively the “better” or even “best” version to use. The two have their own unique features, and an equal amount of pros and cons.

    WordPress.com: Why and When Should I?

    WordPress.com takes care of the basic essentials for you, which lets you focus more on your site’s content. It’s a site builder that’s completely run and hosted by a group of company called Automattic. You get premium hosting, backups, security, and the like. This means that you can focus on your site’s content a lot easier, compared to having to spend hours on end building it from scratch.

    Take note though, that WordPress.com also comes with its own limitations. While you may not have to worry as much about maintaining the inner workings of your site, you may have to keep in mind that you probably aren’t going to have as much freedom with it as you’d like. While customizing your site’s interface may not be an issue (WordPress.com comes with a ton of themes, for instance), adding certain features and elements in the form of plugins may become a problem, especially if your site needs specific features that aren’t available at WordPress.com.

    How to maintain a website is an entirely different story. It greatly depends on 1.) you aren’t a WordPress developer 2.) you have no intention of learning code, or 3.) have little or no time to.

    WordPress.org: When Is It Time to Consider?

    One rule of thumb when it comes to considering WordPress.org is when you’re at least a little familiar with the workings of code, or are willing to invest some time in learning how to. Since WordPress.org is a self-hosted version of WordPress, you can get your hands as dirty as you want them to be. Plus, you have the freedom to tinker with it as much or as little as you’d like. You’d be in-charge of finding your own host, of setting up your own security backups, and overall maintain the website by yourself– and more importantly, on your own terms.

    “But wait, why would I want that? Isn’t the point of WordPress to make site-building easier?”

    …Not exactly. Think of it this way: The Daily Post creates an excellent analogy between WordPress.org and WordPress.com, in a way that even the noobest of noobs (such as myself) get the gist right away.

    According to them, you have to think of WordPress.com as something you don’t have full ownership to. Take for instance, your 15-year old self, still living with your folks. If you wanted to paint your bedroom, you’d have to ask your parents’ permission first (who of course have full ownership of the house, including your room). Technically, the room is yours, but at the end of the day, well…it kind of isn’t.

    So if you need or want to make any drastic changes (like painting your walls, or having the room extended), you’d still have to talk it out and/or work up a compromise with the actual owners of the house, a.k.a. mum and dad. An upside to this though, is that when the fuse in the basement crashes, or the AC stops working, your parents get to take care of it, and you don’t have to worry about a thing.

    WordPress.org, on the other hand, is something you can freely customize and tinker with on your own accord. This can be compared to when you finally get to move out at 18, and get a flat of your own. Since you have full ownership of your residence, you don’t have to compromise with anyone to paint your walls in that color your mum’s always dreaded; you have the freedom to make the decision, and/or hire someone who fits your standards to do it for you. Additionally, you also have the liberty to choose exactly which AC unit you want for your living room. It’s just that if it happens to crash, you’re going to have to hire a mechanic to fix it, or figure out what’s wrong and how to repair it on your own (which isn’t too bad, because hey, lesson learned, and learning is good).

    By now, you’ve hopefully gotten a clearer picture of just what the stark differences between WordPress.com and WordPress.org are. But in a nutshell:

    install as much or as little as you want themes are limited only to WordPress themes, you have to pay a certain fee to get rid of ads.You have near full-control of your site; you can add, customize, or even build your own themes.

    Content control is limited;

    WordPress.com WordPress.org
    Fully hosted by WordPress; all essentials are covered. Self-hosted; choose your own essentials, or choose better ones.
    Features are limited to what WordPress.com offers Thousands of features in the form of plugins;

    These are a few of comparisons that come with weighing in the differences between the two. Choosing between the two ultimately comes down to the amount freedom you want in creating your site, and how much resources (time, effort, money, etc) you’re willing to give up for it. Remember, that these are both very crucial options to weigh in before you decide which WordPress platform suits you best. So, don’t rush the decision process!

    Happy Website-Building!

  • Why WordPress?

    Why-WordpressOne important thing to consider when building your first website– whether you’re a business, a freelancer, or anything and anyone, really– is that not everyone is adept in the language of code and software development. You could be, for instance, a chef who wants to publish his recipes online. You could also be a Fine Arts undergrad who needs a professional-looking portfolio, or a start-up business that needs a site of their own. Whether it’s one or the other or anything in between, the fact remains that while some of us may be familiar with the basics of code, we aren’t all full-time developers, and that not everyone who needs or wants a site knows how to make one from the bottom up. This is where WordPress might come in handy. Enter the question: “Why WordPress?”

    REASON #1

    WordPress is a Content Management System, Making It Totally User-Friendly.

    The first thing you need to know is that WordPress is a Content Management System (or CMS). In simpler terms, this means that WordPress allows its users to create websites without having to build code from scratch. It has a systematic, organized interface that lets you constantly keep things in check without having to tinker with code every now and then.

    Compared to building a website from scratch, which would typically start out like this:

    screenshot-1 With a Content Management System, you get to start out with something like this:

    WordPress
    WordPress ‘s back-end interface. Managing and creating websites becomes easier with CMS.

    You might ask yourself, though: “WordPress seems great, but what if it doesn’t have the features I want for my site?”, or “what if I want a map, a music player, or a caching engine, or a more reliable security system?”

    …Technically speaking, WordPress probably does have that feature you want, and it will come in the form of a WordPress Plugin.

    REASON# 2

    Plugins: The Cherry on Top of the WordPress Cake

    If you’re worried that WordPress doesn’t include that particular feature you might want on your site, don’t worry: it probably does.

    Plugins are “extension features” that exist to increase your WordPress site’s functionality. If you’re an entrepreneur who needs a contact form for your site, you might want to take note that WordPress in itself doesn’t have that feature, but there are tons of plugins that do. And since WordPress is open-source—meaning just about anyone can contribute to its development—new plugins are created regularly. You can get that contact form you want, and more. You get the freedom to add other plugins ranging from social sharing buttons, to maps, and even additional security measures for your site, among many, many other features and extensions. Now tell me that doesn’t sound neat.

    As of now, WordPress has about thousands of these plugins—and some of them are even available for free and/or have free versions, including PBS.

    REASON #3

    Open Source: The WordPress Community

    WordPress is Open Source. This means that anyone is free to contribute to its development, and anyone is open to study its backbone code to learn more about software development, and even WordPress itself. There are even businesses that are solely dedicated to creating and developing WordPress-related products, such as the plugins and themes (like us!)

    Because WordPress is open source, there are tons of users, developers, and even designers that constantly collaborate and even help each other out with WordPress-related problems. This way, you get real help from real people, and at the same time, learn from each other. This is something that your typical customer relations services hardly ever get to do.

    REASON #4

    WordPress is Legit.

    CNN, The Official Star Wars Blog, Time Magazine, and even (GASP!) Beyonce all have WordPress-run sites, among many others. These big names aren’t the only thing that backs up WordPress’ legitimacy, too– according to Treehouse.com, about 25% of all sites up on the web are run by WordPress. Considering how many millions and thousands of websites exist… well, 25% is a pretty big number.

    REASON #5

    Customizations Galore!

    WordPress has a ton of themes available for you and your site. You’re free to choose from free versions, premium ones, or even build one on your own (or hire someone to build it for you!).

    REASON #6:

    It’s Free.

    Yep, you read that right. Through Local Development, WordPress is totally free, and you can install it in your computer with the click of a button. Likewise, instead of hiring a developer, you could use whatever knowledge you have about code to learn more about how WordPress works (and hey, learning is always good).

    …not to mention that if there is a chance you don’t have time to get too deep into WordPress and site building, you could always get yourself a nifty page builder plugin and give ours a go.

    Remember that there are endless possibilities with WordPress, and it doesn’t need to take a genius to figure out how it all works!

    Using WordPress can save you a lot of time, money, and effort. And in a time when there’s very little of those resources, bear in mind that WordPress sites, their plugins (like PBS!), their themes, and its community especially, can totally help you out and make things much, much easier for you.

    Happy Website-Building!

  • The Unspoken Problem of Shortcodes

    The-Unspoken-Problem-of-Shortcodes

    Shortcodes are one of the pinnacles of wordpress. Shortcodes are the bridge between developers and site creators, allowing people to place elaborate pieces of content almost anywhere they wish. Plugin creators love shortcodes since this allows more flexibility in the way how and where their users display their content.

    If you don’t know what shortcodes are and what they look like, they’re those archaic code-like text wrapped in square brackets. They look something like this:

    This specific one is called the embed shortcode and is built-in by default in WordPress. This specific one embeds the video from the URL into your content. Just copy and paste the above shortcode in your site if you want to give it a spin.

    Behind the scenes, what happens is that when WordPress encounters a shortcode in your content, it gets processed and converted into something else. In our case above, whenever an

    shortcode is detected, WordPress takes the URL in the shortcode and checks it against a number of content providers that it has. When it finds one, it then gets the appropriate iframe embed code and displays that instead.

    So what’s the problem here? It sounds easy enough, you just enter a short text with brackets and you’re done.

    Enter the Shortcode API..

    Shortcodes Galore

    The Shortcode API opens up the creation of shortcodes to developers. Because of this, developers can add their very own shortcodes inside their plugins.

    This is great, now with just a short code-like snippet (hence the name “shortcode”), beginners and advanced users alike can put virtually any type of content they wish anywhere.

    WordPress by default only has a handful of shortcodes. It’s easy to type them out from memory because there’re just a few of them. But if you install a few plugins, the number of shortcodes quickly jump up to a dozen or more, and in some cases more than a hundred. Each shortcode has their own set of attributes and instructions on how to use them. Each plugin most likely has some sort of documentation on how all of their shortcodes work and lists all of the parameters available in each one. But you’d be nuts if you try and memorize all of the shortcodes and their attributes.

    The problem is that there is no centralized area on which you can find out all the shortcodes available on your site and how to use them.

    Some Try and solve the problem

    Some plugins try and solve this problem by presenting all of their own shortcodes in a easy to access drop down. Then clicking on one would print out the shortcode, complete with all the possible attributes for it. There’s no more need to memorize it, which is a good thing.

    Screen-Shot-2016-06-22-at-11.27.09-AM

    Some go farther and add in a settings popup form that has checkboxes and color pickers to populate the shortcode’s attributes.

    Screen-Shot-2016-06-22-at-11.28.54-AM

    This solution sort of works. However, each plugin only enumerates their own shortcodes. So if each plugin creates their own form of shortcode picker, you’re bound to run into times when you have multiple shortcode pickers on your screen (This has happened to me before).

    Screen-Shot-2016-06-22-at-11.22.41-AM

    In other words, each plugin does their own does their own thing and implements their own solution for their own shortcodes. Some plugins add either a new button beside the “Add Media” button, or a new one inside TinyMCE.

    So now you might be thinking, “Why not just also gather the shortcodes of other plugins and include that in your dropdown / shortcode picker too?” Well, that’s exactly what I thought. But, this is easier said than done. I’ll explain why in a bit, but first let’s look at what an ideal solution would look like.

    The Ideal Solution

    The perfect plan would be to create a plugin that gathers all of the available shortcodes in your site, then presents you with the list and also help you fill up all the attributes. And every time you install a new plugin, all of those newly introduced shortcodes would be presented to you as well.

    Imagine a central place where all your shortcodes would be placed for easy access. Each shortcode would describe what they do and what plugin they belong to. Then for each available attribute, imagine each of those would have a label, a proper way to select a value for them and a description. You’ll be shown drop downs, color pickers, radio buttons, toggles and whatnot.

    Something like this would make our lives as website and content creators easier. No more checking different documentations, or different parts of your admin just to copy a generated shortcode for a slider that you want to use.

    The Caveat

    Unfortunately, it’s quite difficult to do something like that right now. There is no sure-fire way to know all the details of a shortcode. You can get a list of all shortcodes, but only their actual tags/names, you can’t get any additional details about them such as a kist of attributes, what they do and their types – like a string, a color or a number. Nor can you get a semblance of a description for each attribute.

    Note to the developers out there: yes there’s a newly added third argument for the shortcode_atts function, but it’s not a required argument. So unless every plugin developer in the world implements it, then we still won’t have a sure way to determine all of a shortcode’s attributes.

    The Shortcode API doesn’t provide any facility for adding shortcode descriptions, type casting attributes or attribute descriptions. And unless WordPress itself adds a central area for accessing shortcodes, I doubt this facility would be created.

    Conclusion

    Right now the task of organizing shortcodes is left to each developer. Unless a central method is developed within WordPress, expect to continue to see multiple “Add Shortcode” buttons in your backend. Whether something like this should be added into the WordPress Core or not is another huge discussion in itself.

    An Alternative

    There are page builder plugins that address this differently. Instead of programmatically detecting shortcodes, they have shortcode mappers where users can manually input every detail of a shortcode. Once done, it would then become available within the page builder. While  this works, those are only available in your own site.

    We here at Page Builder Sandwich are creating something that can hopefully solve this shortcode conundrum. Subscribe to our newsletter below to get notified on our progress.

  • How to Create Basic Hero Headers in 3 Easy Steps

    How-to-Create-Basic-Hero-Headers-2

    061716_PBS_Jihan_How to Create Basic Hero Headers_Done

    When your dream website finally becomes a reality, the first thing you want your audience to know is what your site’s all about. The trick to reel them in is to give them a good but quick summary of your site’s content – and the easiest way to do that is by creating a Hero Header for your page.

    What are Hero Headers?

    The purpose of the Hero Header is to visually communicate with your target audience in the fastest and most efficient way possible. You need to grab their attention quickly, in a way that it says: “Hey, this is my website, and here are the reasons it may be worth your time.”

    Typically, hero headers take up most of the space on the page, usually with large text and an equally large background image in order to give your readers a quick but firm-enough grasp as to what your website can offer them.

    To get started on your first ever PBS hero header, follow the quick steps below:

    Step 1: Insert Column and adjust Row Width

    061716_PBS_Jihan_How-to-Create-Basic-Hero-HeadersClick 1 Column below the Insert Content tab on the inspector (that thing on the left/sidebar). Make sure your caret (the blinking cursor on the text box) is inside the text box.

    061716_PBS_Jihan_How to Create Basic Hero Headers_Step-1-b_Revised-1Under the Row Properties tab, you may change the background color in order to use it as a guide for the next steps. Change Row Width from Normal to Full-Width: Retained Content Width using the toggle button shown above.

    What’s the difference between Normal, Full-Width and Full-Width: Retained Content Width?

    Row Width-Normal

    Normal – Background, text and other elements are contained within the bounds of your current theme’s row width

    Row Width-Full-Width

    Full-Width – Background, text and other elements fill the entire width of your browser window

    Row Width-Full-Width Retain

    Full Width: Retained Content Width – Only the background fills the entire width of your browser window. Text and other elements are contained within the bounds of your current theme’s row width

    In this layout, Full Width: Retained Content Width is used because the text that will be applied is centered; not full-width.

    Step 2: Adjust margin to create Whitespace

    061716_PBS_Jihan_How to Create Basic Hero Headers_Step-2-revisedIncrease the top and bottom margin by hovering the cursor on the arrow pointing to the margin you want to adjust. When the cursor turns into a double-headed arrow, click and drag down to your desired margin height. Its important to put Whitespace (also called Negative Space) between elements in a composition to create flow and help draw focus to the content on the page.

    Step 3: Add background with text and element overlays

    061716_PBS_Jihan_How to Create Basic Hero Headers_Step-3-aTo add a background image with text and element overlays, simply click the Background Image icon under the Row Properties tab, upload your desired background image, and select to apply.

    061716_PBS_Jihan_How to Create Basic Hero HeadersTip #1: For Premium users, using the Background Image Tint option, helps to provide more contrast for text, buttons or other elements. You can select a tint color and adjust its value by clicking on the Background Color icon. Both icons can be found under Background on the Row Properties tab.

    061716_PBS_Jihan_How-to-Create-Basic-Hero-Headers_Step-3-cType in the message for your header. See Text Formatting tab to adjust the style. Choose typefaces that are easy to read and goes well with the background image. Remember to show contrast from the background image.

    Tip #2: For branding elements, consider use a white or black logo so it does not clash with a colorful background image.

    061716_PBS_Jihan_How to Create Basic Hero Headers_Step-3-dYou can also add buttons by clicking on Button below the Insert Content tab.

    Don’f forget to save your work and you’re all set!

    Congratulations on making your first hero header with PBS! In case you don’t though, no need to fret; starting from scratch is arguably easier with PBS, so it shouldn’t be that much trouble.

    Happy website building!