Opta WP

Contents

1. Set Up Video

2. Documentation Opta WP

3. Change Header and Footer Logo Size

4. Center Widgets in Footer

5. Change Font

1. Set Up Video

2. Documentation Opta WP

Manual for Opta WP

3. Change Header and Footer Logo Size

Our default size for logo in header and footer is 140x140px but using some CSS code it is displayed 70x70px logo. Image is 140x140px but it is displaying 70x70px.

Why?

On this way, our logo is retina ready - it will look perfect on any device with any resolution.

How to change Header and Footer logo size?

To change image size for Header and Footer logo, in: 

Dashboard > Appearance > Customize > Additional CSS

add code like this:

.header-logo img
{
width: auto;
height: auto;
}
.footer-logo
{
width: auto;
height: auto;
}

This code will use the original sizes for Header and for Footer images. But, after this code, your header logo (maybe) is not center properly with "Menu" lines. You can use some more CSS code to move it Up/Down to make it perfect, like this:

.header-logo img
{
width: auto;
height: auto;
margin-top: -20px;
}
.footer-logo
{
width: auto;
height: auto;
}

*change value for "margin-top"

But with this code your logo will not be Retina Ready. If is not important for you to be Retina Ready, you are done. Don't read the boring text below.


I want bigger logo than 70x70px and to be Retina Ready!

Lets say, you need a Header logo which will be displayed in 200x150px dimension and Footer logo which will be displayed in 100x100px. That mean, you will need to create a Header logo which is 400x300px and a Footer logo 200x200px and in: 

Dashboard > Appearance > Customize > Additional CSS

add code like this:

.header-logo img
{
width: 200px;
height: 150px;
margin-top: -20px;
}
.footer-logo
{
width: 100px;
height: 100px;
}

*change value for "margin-top"

Now, your Header (200x150px) and Footer (100x100px) logo are Retina Ready.

4. Center Widgets in Footer

To center the Widgets in Footer add this CSS code in Dashboard > Appearance > Customize > Additional CSS

ul#footer-sidebar li.widget
{
    text-align:center;
}

5. Change Font

To add new Google Font, lets say "Oswald" - https://fonts.google.com/specimen/Oswald you need to find this line of code in functions.php:

$font_url = add_query_arg('family', urlencode('Playfair Display|Montserrat:400,700|Roboto:300,300i,400,400i,700,700i'), "//fonts.googleapis.com/css");

and replace with this code:

$font_url = add_query_arg('family', urlencode('Oswald|Playfair Display|Montserrat:400,700|Roboto:300,300i,400,400i,700,700i'), "//fonts.googleapis.com/css");

on this way, you will include just Oswald Regular weight. If you want to include Oswald Regular and Bold use code like this:

$font_url = add_query_arg('family', urlencode('Oswald:400,700|Playfair Display|Montserrat:400,700|Roboto:300,300i,400,400i,700,700i'), "//fonts.googleapis.com/css");

Now, your new Google Font is included in theme, but you need to make some CSS changes.

Here is a CSS code which you need to add in Dashboard > Appearance > Customize > Additional CSS to replace all "Playfair" font with "Oswald":

.menu-left-text, .post-num, .blog-item-holder h2.entry-title, 
.page h1.entry-title, .blog h1.entry-title, .single h1.entry-title,
.nav-previous a, .nav-next a, .archive-title h1, .search .search-title h1, 
.grid-item.quote-item, .portfolio-text-holder .portfolio-text,
.taxonomy-title h1, .carousel-slider .slick-slide .item-text a,
.single-gallery h1.entry-title, .big-text, .footer-first-line,
.our-position-holder, h4.widgettitle
{
    font-family: 'Oswald', serif;
}