When we develop any custom WordPress theme we need to use different functions. We need to write those functions in functions.php file of the custom theme. I have prepared some of those basic functions and included in the functions.php file. I have mentioned the usage / procedure to use the function in the same file.
You have to download the functions.php file and put it inside your theme folder.
Following functions are included in functions.php file.
- Navigation / Menu
- Remove default UL markup from wp_nav_menu output
- Enable featured image with custom dimension
- Image compression while uploading
- Remove width and height attributes from inserted images
- Enable sidebar widget
- Shorten post / page title by word limit
- Shorten excerpt by word limit
- Shorten content by word limit
- Strip images from content
- Display the content of a page by page ID
- Display the content of a page by page slug
- Anti spam email shortcode inside content editor
- Change default sender email address for generated emails
- Change default sender name for generated emails
- Remove default widgets
- Remove WordPress version from Head
- Remove login error message on login page
- Enqueue script in footer
- Enqueue CSS in header
- Disable admin bar for all users but admins in the front end
GitHub URL: https://github.com/blbwd/wp-functions
Are you looking for any tools online to make a wonderful poster on your own? In general, the poster is an excellent medium to spread products, companies or even thoughts. From students to business people, learn to make a right poster is a necessary skill for promoting their purposes.
For many people, it is hard to create a unique poster that differs from any others and stand out from the crowd. Thus, DesignCap is appearing.
The logo is an essential part of businesses. To get a unique logo can be important to show your company culture. In general, to hire a designer to custom a logo can be a great choice for many companies. But if you own a small business or a start-up, create a logo with an online logo maker can be economical than hire a professional designer. Here, I want to show you a brilliant logo maker named DesignEvo to help you design a logo online in minutes.
DesignEvo logo maker is one of the graphic design products of PearlMountain. It is devoted to helping a large number of small business owners, startups, and bloggers design right logos in an easy way.
74,652,825 websites depend on WordPress and yet yours was the one that got hacked? Well, join the club, you’re not alone!
WordPress is a phenomenally popular site that powers about 30% of the internet. I have also been a constant victim of getting my WordPress site hacked frequently and decided to take action needed to stop this once and for all. Here is how I found a solution to my hacking woes.
While browsing the internet for the best security plugin by WordPress out there I came across MalCare. This was a relatively new security feature that I became even more convinced of as I learned more about it. And let me tell you, I went for it, and since then, my site hasn’t been hacked to date.
WordPress migration is the bare necessity of running an active website. All WordPress customers need to deal with the aggravations with migrating their site beginning with one web host onto the next web host.
It is known by the web society that WordPress migration is a overwhelming undertaking. This is clear with the by and large wide number of instructional exercises and articles concerning it. Even more importantly, the expenses incurred in this system are a wide sum.
In the 21st century, we would look for our prerequisites to be fulfilled intuitively for a comprehensive customer endeavour. For the particular strategies to stay reasonable to this day and age, it is fundamental for the required virtual processes to be quick, i.e. they ought to be simple for the customer.
WordPress has profitable strength of 14 years on the web. Even so, after this time, migration must be done manually. This is genuinely tiresome. You will be responsible for content creation and administration; additionally, even back-end work like migration for your website has to be done by you here.
WooCommerce is the most customizable eCommerce platform for building your online business. If you opt your website under WordPress then WooCoomerce is the right choice. But every WordPress themes are not properly compatible to this plugin. While choosing your theme you might consider if the theme is WooCommerce ready or not if you are going to sell products through your site.
While developing WordPress theme or plugin we use different WordPress keywords or terms, additionally while handling forms fields and custom post types we have to consider what names we can use or not. The restricted names are called reserved terms.
WordPress itself reserves few keywords or terms which we can not use in our coding. Using these reserved or restricted terms just break the functionality what we intend to get.