{"id":504,"date":"2013-02-07T14:01:22","date_gmt":"2013-02-07T15:01:22","guid":{"rendered":"https:\/\/kerrprogroup.com\/?p=504"},"modified":"2025-03-19T12:24:31","modified_gmt":"2025-03-19T12:24:31","slug":"freebie-release-bare-responsive-a-blank-and-responsive-wordpress-theme","status":"publish","type":"post","link":"https:\/\/kerrprogroup.com\/index.php\/2013\/02\/07\/freebie-release-bare-responsive-a-blank-and-responsive-wordpress-theme\/","title":{"rendered":"Freebie Release: \u201cBare Responsive\u201d \u2013 A blank and responsive WordPress Theme"},"content":{"rendered":"

Creating WordPress Themes<\/a> from scratch can be challenging. After completing this task multiple times, you might start seeking a more straightforward approach. I\u2019ve discovered that building on a basic template can significantly speed up the project timeline<\/strong> and reduce stress.<\/p>\n

Therefore, I\u2019ve designed a unique WordPress template called \u201cBare Responsive\u201d<\/strong>, available for download below. The design is mobile-friendly<\/em> and responsive<\/em> to various screen sizes. It includes all the standard WordPress template files, and you have complete freedom to modify<\/strong> them as you wish.<\/p>\n

My goal is for this template to serve as a foundation for WordPress development<\/strong>, offering a better starting point than a blank slate.<\/p>\n

Along with the template files, I\u2019ve also provided some sample data<\/strong> (also available for download below) that you can import and use to test the design.<\/p>\n

In the following article, I\u2019ll discuss some of the WordPress features and how you can leverage them<\/strong> in your themes.<\/p>\n

Inside the Header<\/h4>\n

Within the header.php<\/strong> file, I\u2019ve added numerous extra metadata and third-party scripts. It\u2019s advisable to modify the author meta tag to reflect your name or your website\u2019s name.<\/p>\n

I\u2019ve also incorporated an external stylesheet link to the Google web font Quando<\/a>, which I utilize for the header text.<\/p>\n

\"Google<\/figure>\n

You might observe that I\u2019ve employed a custom navigation setup within the WordPress Themes<\/a>. There\u2019s no strict need to modify the PHP code. However, it\u2019s beneficial to review the parameters for wp_nav_menu()<\/a> to determine any desired alterations.<\/p>\n

What you should consider is creating a new menu within the WP Admin under Appearance > Menus.<\/strong> Subsequently, you can link this new menu to the \u201cheader-menu\u201d located in the template file.<\/p>\n

\"Appearance<\/figure>\n

This approach allows you to integrate custom links<\/strong>, pages<\/strong>, and even sub-pages<\/strong> into the top navigation without needing any coding.<\/p>\n

Custom Theme Functions<\/h4>\n

One of the most intriguing sections of code to customize is within the functions.php<\/strong> file. It contains all the default theme properties, encompassing navigation menus and widgetized sidebars.<\/p>\n

I\u2019ve configured two separate, widgetized sidebars. By default, there\u2019s no need to add anything to them, as the template displays non-widgetized data. However, it\u2019s straightforward to locate these sidebars under Appearance > Widgets<\/strong>.<\/p>\n

\"Responsive<\/figure>\n

The main sidebar<\/em> is positioned to the right for all standard layout styles. As the screen width decreases, this sidebar becomes hidden and is substituted with a responsive sidebar. This new mobile-friendly sidebar<\/em> comprises only two elements and appears below the page content.<\/p>\n

Having this flexibility is beneficial, as you might opt to populate both sidebars with the same content. Alternatively, you can establish entirely distinct content for each sidebar, which might be more effective.<\/p>\n

I\u2019ve also defined several other functions within the theme file.<\/p>\n

Initially, I\u2019ve removed the #more<\/strong> hash from the end of blog post links. I\u2019m not fond of this standard WordPress feature, as it seems somewhat intrusive.<\/p>\n

Additionally, the archive pages don\u2019t include a \u201cread more\u201d link by default. To address this, I\u2019ve incorporated it into the HTML using a custom WordPress filter.<\/p>\n

Potential User Modifications<\/h4>\n

The \u201cbare-responsive\u201d theme is designed to be straightforward, allowing you to upload the template and begin editing files directly within the WordPress admin panel. While you have the option to work with the files individually, this can be challenging without a WordPress blog to test the modifications.<\/p>\n

Emphasizing simplicity, I\u2019ve restricted the theme files to just the essentials<\/strong>. Additionally, all the responsive mobile CSS codes are consolidated in the style.css<\/strong> stylesheet.<\/p>\n

\"Responsive<\/figure>\n

You can adjust the template styles as needed to better align with your preferences.<\/p>\n

The custom script.js<\/strong> facilitates the mobile responsive dropdown navigation panel. I believe this approach offers an optimal solution for header navigation, resulting in a seamless appearance.<\/p>\n

If you wish to modify the CSS styles of the mobile menu, ensure that you maintain the consistency of the IDs and classes<\/strong> with the jQuery script.<\/p>\n

\"Mobile<\/figure>\n

Concluding Remarks<\/h4>\n

I genuinely hope that this \u201cbare-responsive\u201d template serves as an inspiration for budding developers. Navigating WordPress can be daunting, and having a foundational code can be immensely beneficial.<\/p>\n

I\u2019m open to addressing queries and welcoming feedback, recognizing that no template is flawless.<\/p>\n

Collaborating with fellow developers is a valuable way to enhance your skills and identify common pitfalls. So, dive in and start coding!<\/p>\n

Downloads Theme and Related Files<\/h4>\n

wptestdata.xml<\/h5>\n

Download and import this XML file into your WordPress to give it some dummy content.<\/p>\n

<\/i> Download XML <\/span><\/a><\/p>\n

Bare-responsive WordPress Theme<\/h5>\n

This whole project is purposefully released as open source under the MIT license<\/a><\/strong> which means you can edit and distribute unlimited copies for any project as long as you do not claim it your own, or re-sell it.<\/p>\n

<\/i> Download WordPress Theme <\/span><\/a><\/p>\n

The post Freebie Release: \u201cBare Responsive\u201d \u2013 A blank and responsive WordPress Theme<\/a> appeared first on Hongkiat<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Creating WordPress Themes from scratch can be challenging. After completing this task multiple times, you might start seeking a more straightforward approach. I\u2019ve discovered that building on a basic template can significantly speed up the project timeline and reduce stress. Therefore, I\u2019ve designed a unique WordPress template called \u201cBare Responsive\u201d, available for download below. The design is mobile-friendly and responsive to various screen sizes. It includes all the standard WordPress…<\/p>\n","protected":false},"author":1,"featured_media":506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/posts\/504"}],"collection":[{"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":3,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":512,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/posts\/504\/revisions\/512"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/media\/506"}],"wp:attachment":[{"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerrprogroup.com\/index.php\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}