Category Archives: EnvatoTutsCode

Free Course: How to Become a Web Developer

Web development can be a daunting topic to get started with. Unlike with conventional applications, not only do you need to be familiar with how the web works, but you also have to understand a variety of technologies and languages. 

In our free beginner’s course, How to Become a Web Developer, you’ll get a solid introduction to the most important aspects of web development.

Screenshot from How to Become a Web Developer course

What You’ll Learn

Envato Tuts+ instructor Jeremy McPeak will teach you everything you need to know to get started with web development. You’ll learn how to create web pages using HTML, CSS and JavaScript. Not only that, but you’ll learn about some of the fundamentals of the internet: URLs, DNS, HTTPS and more! 

read more

Magento Theme Development: Series Finale

When I initially planned this series, it was intended to be a 15-article series, in which we planned to develop all the pages of the theme, including the shopping cart, checkout pages, login/sign up pages and the user accounts pages. 

But after writing the first 10 articles, I realized that we have already explained, in detail, all the steps required to make the changes in your Magento theme pages, and editing the other pages will be just a repetition of the steps we have already explained before. 

Therefore, I’m concluding the series in this article, where we’ll finalize the product page from where we left it in the previous article, and I’ll give you some tips on how to use the techniques you have learnt in this series to edit the rest of the pages yourself.

So let’s resume the product details page customization. This is how it currently looks:

Product section without CSS changes

If we compare it with the HTML design we have, this is how it should look:

HTML design for product section

To make it look like our HTML design, we need to make some font changes in the product heading, price and availability sections. Also, in the ‘Add to Cart’ section we need to change the background color and borders. Other than that, we need to make some changes with the margins and the padding. We’ll do that by adding these lines in our theme.css file:

/***** Product Details Page ***********/
.more-views{margin-top:10px;}
.product-image-thumbs {text-align: center;}
.more-views .product-image-thumbs  a:hover {
    border-color: #b39a64;
}
.more-views .product-image-thumbs a {
    float: left;
    padding: 3px;
    border: 1px solid #cccccc;
}

.products-details{font-family: Georgia, sans-serif;}
.products-description .name {
    font-family: Georgia, sans-serif;
    font-size: 30px;
}
.availability.in-stock {
    font-size: 11px;
}
.products-details .products-description .price{width:50%;font-size: 25px;
    color: #b39a64;
    font-weight: 500;}

.products-description .product-options{
    border: none;
    padding-left: 30px;
}
.product-view .products-description .product-options .swatch-attr label{
    font-size: 11px;
    font-family: inherit;
    font-weight: normal;
}

.products-description .product-options-bottom{
    border:none;
    background: none;
    padding-left:30px;
    font-size: 12px;
    padding: 17px 0 0px 0;
    border-top: 1px solid #ccc;
    margin: 10px 30px 0 30px;
}
.product-view .product-options-bottom .add-to-cart-buttons .button {
    background: #b39a64;
    color: #fff;
}
.product-view .products-description .add-to-cart{
    margin-bottom: 21px;
}

read more

Magento Theme Development: Series Finale

When I initially planned this series, it was intended to be a 15-article series, in which we planned to develop all the pages of the theme, including the shopping cart, checkout pages, login/sign up pages and the user accounts pages. 

But after writing the first 10 articles, I realized that we have already explained, in detail, all the steps required to make the changes in your Magento theme pages, and editing the other pages will be just a repetition of the steps we have already explained before. 

Therefore, I’m concluding the series in this article, where we’ll finalize the product page from where we left it in the previous article, and I’ll give you some tips on how to use the techniques you have learnt in this series to edit the rest of the pages yourself.

So let’s resume the product details page customization. This is how it currently looks:

Product section without CSS changes

If we compare it with the HTML design we have, this is how it should look:

HTML design for product section

To make it look like our HTML design, we need to make some font changes in the product heading, price and availability sections. Also, in the ‘Add to Cart’ section we need to change the background color and borders. Other than that, we need to make some changes with the margins and the padding. We’ll do that by adding these lines in our theme.css file:

/***** Product Details Page ***********/
.more-views{margin-top:10px;}
.product-image-thumbs {text-align: center;}
.more-views .product-image-thumbs  a:hover {
    border-color: #b39a64;
}
.more-views .product-image-thumbs a {
    float: left;
    padding: 3px;
    border: 1px solid #cccccc;
}

.products-details{font-family: Georgia, sans-serif;}
.products-description .name {
    font-family: Georgia, sans-serif;
    font-size: 30px;
}
.availability.in-stock {
    font-size: 11px;
}
.products-details .products-description .price{width:50%;font-size: 25px;
    color: #b39a64;
    font-weight: 500;}

.products-description .product-options{
    border: none;
    padding-left: 30px;
}
.product-view .products-description .product-options .swatch-attr label{
    font-size: 11px;
    font-family: inherit;
    font-weight: normal;
}

.products-description .product-options-bottom{
    border:none;
    background: none;
    padding-left:30px;
    font-size: 12px;
    padding: 17px 0 0px 0;
    border-top: 1px solid #ccc;
    margin: 10px 30px 0 30px;
}
.product-view .product-options-bottom .add-to-cart-buttons .button {
    background: #b39a64;
    color: #fff;
}
.product-view .products-description .add-to-cart{
    margin-bottom: 21px;
}

read more

iOS From Scratch With Swift: Where To Go Next

You have learned a lot over the past weeks, grasshopper, and you might even feel a bit overwhelmed at this point. I’d like to leave you with some advice and a bunch of resources to keep you on track to become a proficient iOS developer.

Things to Consider

Even though 2007 seems like yesterday, the mobile space, and iOS in particular, has grown at an incredible pace. It is hard to imagine the mobile landscape without the iPhone, iPad, and iPod Touch. As a result of the remarkable growth and popularity of the iOS platform, there’s no shortage of books, videos, courses, and blogs to guide you on your quest to become a skilled iOS developer.

read more

A Beginners Guide to Titan Framework: Adding an Enable Type Option

Providing end users with the option to enable or disable certain features of a premium plugin or a theme is pretty common. Titan Framework has recently pushed a new option to its core which does exactly that. Let’s see how you can add an enable/disable toggle button inside an admin panel, a metabox or a theme customizer section with Titan Framework (TF).

The Enable Type Option in Titan Framework

There is an enable type option in Titan Framework to create enable/disable toggle buttons. In the dashboard, the enable type option appears like this: 

Adding enable Type Options

Here are its parameters:

  • name: It assigns the display name of an enable type option.
  • id: This parameter specifies a unique name which gets saved options values.
  • desc: It adds a brief description with the option name.
  • default: (Optional) It assigns the default value.
  • enabled: (Optional) It is the label for the button of the enabled state. The default is set to Enabled.
  • disabled: (Optional) It is the label for the button of the disabled state. The default is set to Disabled.
  • livepreview: (Optional) Each time you add an enable type option in a theme customizer section, this parameter allows you to live preview the changes you make.

All parameters are string by type, except default which is boolean.

Available Containers for the Enable Type Option

You can add this option inside:

  • Admin Panel
  • Admin Tab
  • Metabox
  • Theme Customizer Section

To add an enable type option in these containers, follow these steps:

  • Get an instance via the getInstance() function.
  • Create an option via the createOption() function.
  • Get saved values via the getOption() function.

If you’re interested in learning how to create these containers with TF, then read the previous articles of this series.

Creating an Enable Type Option Inside an Admin Panel

Example Declaration

Let’s create this option in an admin panel first.

<?php
    /**
     * 
     * Create enable type option in an Admin Panel
     * 
     */
    $aa_panel->createOption( array(

        'id'      => 'aa_enable_opt', // The ID which will be used to get the value of this option
        'type'    => 'enable', // Type of option we are creating
        'name'    => 'Allow Custom CSS', // Name of the option which will be displayed in the admin panel
        'desc'    => 'Enable/Disable Custom CSS', // Description of the option which will be displayed in the admin panel
        'default' => true  // Default value of the option

    ) );

read more