Browsing Category

WordPress Tutorials

WordPress Tutorials

Fatal error: Call to undefined function get_parent_theme_file_path() & get_parent_theme_file_uri()

October 19, 2017

Hello,

In the progress of product development and customer support (over 18,000 customers around the world), we see that a large number of users and customers encounter the above error, so how to fix them in the simplest and quickest way, please see the instructions below. We believe it will help you in the best way to get rid of that problem.

After you update your themes or plugins, if you see the Fatal error: Call to undefined function get_parent_theme_file_path() & get_parent_theme_file_uri(), don’t worry. This problem occurs when your WordPress is in old version. Those functions are supported by WordPress since version 4.7. You only need to update WordPress to the latest version or minimum from 4.7 to fix the above error.

Now, you can try to update your website and we recommend that you always keep up with the latest versions of WordPress, Plugins & Themes. Make sure they are up to date to keep you get on new features, as well as fix bugs.

Thanks for reading this post. If you feel it interesting and useful, share it to help others get out of the problem quickly.

Have a nice day 🙂

WordPress Tutorials

Increase request timeout for IIS 6 with FastCGI module

September 21, 2017

If you are hosting PHP on IIS (Windows Server) using FastCGI, there is case that you meet script timeout issue even the max_execution_time value in php.ini is high enough. The error is as below screenshot

The reason is that FastCGI module has its own timeout setting. In IIS7, it’s called ActivityTimeout and you can configure in IIS > FastCGI Settings > Activity Timeout

However, in IIS 6, there isn’t an option like that. To change the request timeout, you can go to C:\Windows\System32\inetsrv\config, open ApplicationHost.config. You will find this section

<fastCgi>
<application fullPath=”…\php-cgi.exe”/>
</fastCgi>

What you need to do is to add activityTimeout parameter to the module, like this

<fastCgi>
<application fullPath=”…\php-cgi.exe” activityTimeout=”3600″/>
</fastCgi>

Now restart your IIS, it will work!

WordPress Tutorials

Setting to Leverage Browser Caching on GoDaddy Hosting doesn’t work

April 8, 2016

You may all know how to set expired headers for static files using .htaccess file. There are a lot of tutorial online. The purpose is to tell browser to cache static content, such as CSS, JS or image files, for a period of time. By doing that, browsers do not have to query the files again, thus decrease loading time of a page. Google PageSpeed Insights measures this parameter and give you bad rate if you do not utilize this setting.

Basically, your .htaccess file should have this content

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
<filesMatch “\.(ico|jpe?g|png|gif|swf)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(css)$”>
Header set Cache-Control “public”
</filesMatch>
<filesMatch “\.(js)$”>
Header set Cache-Control “private”
</filesMatch>
<filesMatch “\.(x?html?|php)$”>
Header set Cache-Control “private, must-revalidate”
</filesMatch>
</ifModule>
# END Cache-Control Headers

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

However, it may not work if you use GoDaddy Hosting. Due to various default settings of GoDaddy, they disable many features and you cannot change via .htaccess. To make above settings work, you can add this on top of the .htaccess file

Header unset Pragma
FileETag None
Header unset ETag

<IfModule pagespeed_module>
ModPagespeed on
# using commands,filters etc
</IfModule>

Well yes, you have to disable Etag Header setting for static content, and turn on pagespeed_mobule. I’m sure that will help you to increase Google PageSpeed Insight grade.

Featured, WordPress Themes, WordPress Tutorials

Guidelines for Choosing a Premium Responsive Video Theme for WordPress

October 19, 2015

Buying a premium responsive video theme for WordPress is usually safer than using a free one. However, that does not mean you cannot still go wrong. To end up with the right premium responsive video sharing theme and not just an expensive mistake, you should follow the guidelines below.

Guidelines for Picking a Premium Responsive Video Theme for WordPress

Select a video theme whose price stay balance with your actual income. In other words, you should estimate the revenue can be generated through your purchased theme. This is a note for both businesses and freelancers: get the responsive video theme you need and make sure you are generating enough revenue to justify it.

Only purchase the responsive video sharing theme of the most reputable WordPress authors or marketplaces. There are a lot of theme authors out there who do not care about their products’ quality; instead, they just care about sales. Avoid falling for persuasive copy or ads. You should read the purchasers’ reviews and comments, and choose an author/marketplace with a great track record for excellence. Also, you need to check for their business vital signs to ensure that they are active.

Check out the theme author’ support system to ensure that it meets your needs. Every premium responsive video theme comes with the author’s support. However, not all support teams are good enough to satisfy your demands. You should find the one with a good reputation for customer satisfaction. There is nothing worse than waiting around while your support ticket is unnoticed for days.

Choose a responsive video sharing theme that matches your content. In particular, you need to determine which post formats you want to publish on your website, how many columns your site layout will have, whether you need an image slider or not, and many more.

Finally, select a responsive video theme with portability in mind. This is very important. Do not let yourself get trapped by features which cannot be ported to other themes. If you are forced to switch to another theme, then you will encounter a big problem.

Quality Premium Theme Examples

Here are two of popular responsive WordPress video themes in 2015. Just experience their demos and pick the right one or get ideas for your video websites.

True Mag – Responsive WordPress Video Blog Theme

True Mag is a modern and clean WordPress theme for video blog, video portfolio and magazine. This responsive video theme is built with the best practices of UI, UX and SEO. It also comes with great features for videos: Built-in Video Ads plugin, Video Short-codes, Video Auto Play, Front-end Video Submission and Self-hosted Video Support.

Responsive Video Theme

NewsTube – Responsive Magazine Blog & Video Theme

This is a clean and fully responsive theme for blogs, online magazines and video websites. It comes with flexible layouts and extensive Theme Options panel. The responsive video theme also supports videos from popular video sharing sites such as YouTube and Vimeo. NewsTube allows you to create great video playlists and channels, as well as your users to submit videos from front-end.

Responsive Video Theme

Featured, WordPress Themes, WordPress Tutorials

How to make WordPress video themes responsive

October 17, 2015

Responsive designs have become a vital part of websites when more users browse websites on smartphones and tablets. Also, Google has considered mobile-friendliness to be one of the standards to rank a site. Under that circumstance, many non-responsive WordPress sites, especially video websites, risk losing their spot in the search ranking. That is the reason why owners need to use responsive video WordPress themes to optimize their sites.

WordPress video themes responsive 2

If you have a video site on WordPress and want to turn it into a responsive one but lack coding knowledge, then this article will help. It is going to guide you how to make WordPress video themes responsive in simple steps.

How to make WordPress video themes responsive

In this article we will take Tenwty Ten theme as example. To make the theme responsive, you need to modify only one file, style.css.

First, put this code at the end of your style.css:

@media only screen and (max-width: 480px) {

}

This is a conditional styling code which tells the web browser that if the screen size is equal or less than 480px, all the styling parameters should be set in between the brackets. And 480px is the maximum screen size of a smartphone.

For tablets, the conditional code will be:

@media only screen and (min-width: 768px) and (max-width: 959px) {

}

For the sake of simplicity, in this article we only discuss responsive video WordPress themes for smartphone. Once you master that, making WordPress video themes responsive for tablets will be very easy.

WordPress video themes responsive 1

After typing the conditional code, you put all the following codes in between the brackets.

The first code will set the main frame size of the theme to 400px:

#access .menu-header, div.menu, #colophon, #branding, #main, #wrapper, #site-title {

width:400px;

}

The second code sets the size of main container:

#container {

width:100%;

}

The container layer width is set to be 100%, which means 100% multiplied by the above layer width. So, it will become 400px as 400px x 100% is still 400px.

The next code will hide the header image of the video theme:

#branding img {

display:none;

}

You can also modify the code above to resize the header image:

#branding img {

width:100%

}

Here the width is set to 100% meaning 100% multiplied by the above layer width.

And, the following code is to hide or re-positions the blog description:

#site-description{

display:none;

}

If you insist that the description must be displayed, then change the code above so it looks like this:

#site-description{

float:left;

}

Next, you set the navigation bar size (width) by using:

#access{

width:100%;

}

Then, you need to set the width of the content container:

#content{

width:100%;

}

Also, set the post content layer margin (position):

.hentry{

margin-left:-13px;

}

The code above will make the post content layer positioned 13px to the left.

Next, you hide the sidebar by using this code:

#primary{

display:none;

}

And resize the footer section: </pre>

<blockquote>

#footer{

width:100%;

}

With the code above you can only resize the main layer of the footer, not its content.

The following one re-positions the WordPress credit text:

#site-generator {

float:left;

margin-top:5px;

}

And the last code will set the footer border’s width:

#colophon {

width:100%;

}

That’s all. Now your theme is responsive. Just practice more and you are able to make your default WordPress video themes responsive without the help of developers.

Featured, WordPress Themes, WordPress Tutorials

Useful tutorials to build WordPress themes for education

October 15, 2015

If you want to build a custom education theme for WordPress with your limited coding knowledge but you do not know where to start from, then this writing will help. The article introduces easy-to-understand tutorials to create a WordPress theme from scratch, which can support you in the first step of developing your own WordPress themes for education.

9 tutorials to build WordPress themes for education

How to Create a WordPress Theme: The Ultimate WordPress Theme Tutorial

WordPress themes for education 1

This series includes 12 parts, starting with a look at structure of a WordPress theme before taking a deep look at the structure of template files. It gives you basic knowledge of creating a theme from scratch, ensuring that your future WordPress themes for education will have clean structure.

How to Create a WordPress Theme from Scratch

This tutorial was published on Tuts+ a few years ago. It looks at taking a HTML/CSS template and turning it into a functioning WordPress theme and describes the use of each template file with code samples. Just follow it step by step and you are able to develop simple WordPress themes for educational blog.

Designing for WordPress: Complete Series

Another useful instruction is Chris Coyier’s video screencast series.  This instruction takes a live look at developing a WordPress theme, which gives visual insight you do not get from a written guideline.

WordPress Theme Development Training Wheels

This tutorial series of theme development is written by Nur Ahmad Furlong and published on Tuts+. The series takes WordPress newbies who don’t have experience with HTML or PHP code through the basic steps to create a custom WordPress theme for education site.

Building custom WordPress theme

Chapter II of the “Complete WordPress theme guide” series on Web Designer Wall shows you how to create a custom theme. Part I and III cover the installation of WordPress and the way to export WordPress. This tutorial is also applied for the WordPress themes for education.

Developing your first WordPress theme

WordPress themes for education 3

This is another tutorial on Wptuts+. It not only covers the basic knowledge and steps to build a WordPress theme, but also gives you some tips to create a genetic theme to sell or give away. This helps you to save effort, money and time when developing your own WordPress themes for education.

How to Create WordPress Themes from Scratch

It can be considered one of the most extensive tutorial series of WordPress theme development. After reading this series, you may be surprised to know that developing WordPress themes for education is not very hard. The tutorial covers the whole process of building a WordPress theme, from structuring the theme layout, designing it in Photoshop and slicing, coding the layout into fully CSS based HTML to WordPress implementation.

Basics of WordPress theme design

This tutorial from WPShout takes a deep look at each of template files, from basic to advanced ones, and gives a simple description of how it works in “plain” language. It also gives you more knowledge about template tags, making your process of building WordPress themes for education easier.

How to Build a Custom WordPress Theme from Scratch

WordPress themes for education 2

The WordPress theme tutorial covers the basics of WordPress theme development and goes through the process that the author used when creating his ‘Sticky’ WordPress theme. Before building your own WordPress theme for education site, just read this example.

Featured, WordPress Themes, WordPress Tutorials

Beginners’ guide: How to find the right WordPress video theme on ThemeForest

September 18, 2015

Suppose that you start to redesign your WordPress site and want to turn it into a mobile-friendly, video-focused one. So you visit ThemeForest marketplace, where browses a lot of versatile and high quality themes, in order to find the right theme for your video site. However, the process is not easy because you are challenged by the vast number of themes and templates here.

To help you overcome the challenge, this article will share the process of how to pick the appropriate ThemeForest WordPress video theme.

Find the Right WordPress Video Theme – ThemeForest

First, you should hover over the WordPress tab on the top menu of ThemeForest, and click on a category for the types of layouts you would like to have. If you are a blogger, you may want to look at the Blog/Magazine category.

video theme themeforest 1

Next, you hit the Tags widget on the left sidebar and choose “video” tag. Now you may want to sort those WordPress video themes by newest items, trending items, best sellers, best rated or price. The price perhaps is not a big priority because you can get a great WordPress video theme for around $50 and the prices do not go that much lower from there. However, it is important to make sure that those themes are ordered by rating. This helps you avoid buying any item from ThemeForest that has not been purchased at least a double-digit number of times and had five star ratings.

Once you have a shorten list, you should start to review each ThemeForest WordPress video theme by hovering your mouse over it and see a preview before you click. This will save you a lot of time.

video theme themeforest 2

If you find one that could be suitable for your video site, you can check its live preview. Also, you should go to the ThemeForest purchase page of the item and look at the purchasers’ comments. This helps you understand more about the theme’s design and functionality, see a lot of problems as well as know whether they are solved.

When checking those comments you can also see URLs of the sites activating this theme. Remember to take a look at those sites so as to see what the ThemeForest WordPress video theme looks like in use. If the theme looks wildly different to the live preview and you are not confident in customizing it, then this one is probably not a good choice for you. In contrast, when you see a video website (using the theme) without the perfect design (like the theme demo) and you still love it, then you should choose this item.

That is all about how to find the perfect WordPress video theme. ThemeForest is no doubt one of the best theme marketplaces; nevertheless, to ensure that the chosen theme is the best suit one, you had better follow those steps.