Daria theme documentation

Daria is a fast and modern WordPress theme for content marketing. Works with custom widgets and uses commented galleries.

Thank you very much for purchasing our theme. We’ve put a lot of hard work into it, and hope you love it as much as we do. As far as the documentation is concerned, we have tried to cover as much as possible to help you get your new theme up and running and to help you customise it.

If you have any questions that are beyond the scope of this help file, please feel free to email via our user page contact form here.

If you like our work, please rate it. If you’re about to rate it with less than 5 stars, please let us know the reason first and we will do our best to improve the theme. Thanks so much!

We love to hear your feedback – if you find any bugs or have suggestions for improvements please get in touch. Nearly all of the time we follow your advice and issue a rapid update to theme.

 

WordPress Information

Since WordPress is constantly being updated information about how to install WordPress may become out of date, so you always can read official guide here.

Below are all the useful links for WordPress information:

 

Theme Installation

Once you’ve downloaded the installation file on ThemeForest, extract it and locate a file called daria.zip. You can install the theme by using one of two installation methods:

WordPress upload

  1. Login to WordPress Admin and browse to “Appearance > Themes”.
  2. Click on the “Add New” button and click “Upload Theme”.
  3. Click on “Choose File” and select daria.zip file.
  4. Click on “Install Now”.
  5. When your theme is successfully installed, click “Activate” to activate the newly installed theme.

FTP upload

  1. Using FTP client, login to the server where your WordPress website is hosted.
  2. Using FTP client, navigate to the /wp-content/themes/ directory under your WordPress website’s root directory.
  3. Using FTP client, upload the daria directory to themes directory on remote server.
  4. Once uploaded, navigate to “Dashboard > Appearance > Themes” in the WordPress Dashboard and hit “Activate” below your newly uploaded theme.

When you use first or second method, please make sure that you’re uploading the daria.zip file (for first method) or daria folder (for second method), not entire package you downloaded. If you upload the wrong file you will get an error stating “Error: missing style.css stylesheet.”

Once installation is complete, your Daria theme will be ready to use. You should now see Daria theme as active.

Note: If you have existing content and featured images, you will have to install Force Regenerate Thumbnails plugin and run it from “Tools > Force Regenerate Thumbnails”.

 

Regenerate Thumbnails

If you already had images in your Media Library when you installed Daria, you will have to resize your image thumbnails. Follow these instructions:

  1. Go to “Appearance > Install Plugins” and install Force Regenerate Thumbnails plugin.
  2. Next, go to “Tools > Force Regenerate Thumbnails”.
  3. Click the “Regenerate All Thumbnails” button. It will take some time depending on the number of images you have. Do not close your browser.

 

Installing Plugins

When you first install the theme, you will see a new menu item: “Appearance > Install Plugins”. Here you can install and activate required or recommended plugins.

 

Theme Customizing

Customize area is one of the main feature in our theme. They give you abilities to made a changes to your site without touching a single line of code.

“Customize” give you an ability to live preview changes on the site. In this field you can change a theme’s custom featured content, layout, customize menus and widgets and other. You can go to theme customize at “Appearance > Customize” section from WordPress admin area.

Changes to settings are usually made rarely. Therefore, they were moved outside of the standard administration panel. This will allow you to focus on the important things without being distracted from the minor ones.

 

How To Set Up Menus

Setting up Navigation Menus works normally as it does for any WordPress Theme. If you’re new to WordPress, you can learn more about menus in this article.

To create and activate your new menu follow the steps below:

  1. Log in to that site as an administrator.
  2. Go to “Appearance > Menus” panel.
  3. Give your menu a name and click “Create Menu” button.
  4. Add few simple links from “Custom Links” tab.
  5. Save your menu.
  6. Navigate to “Manage Locations” tab (at the top of the screen).
  7. Choose your new menu as “Primary Menu”.
  8. Save changes.

 

Set Up Your Homepage

It is not difficult to choose how the main page is displayed. Create a menu by going to the administration panel “Pages – > Add new”. Select a page template in the “Page attributes” Metabox. Here you will be presented with several design options.

 

Sidebars

Daria theme comes with styled default WordPress widgets.

 

How to use widgets

  1. Go to “Appearance > Widgets”.
  2. Expand the box, where you would like to place your widget, by clicking on the arrow icon next to it.
  3. Drag & drop the widget you wish to use, in the expanded area below the box.
  4. Fill in the information necessary and click Save.

 

The sidebar locations in the theme are referenced below

  1. Sidebar: Appears to the right of the main content.
  2. Main Navigation: Appear in your main navigation overlay.

 

How To Update Theme

If you are in need of the update, download the current build from ThemeForest to install the updated theme.

 

FTP Updating

If you have not customized the original theme files then you may simply drop the updated theme folder contents into the theme folder on your server – which is located in wp-content/themes/daria.

If you wish to upload the entire updated theme as a separate theme, ensure you:

  • Rename the updated theme’s folder (different from the current theme).
  • Drop the renamed theme folder into wp-content/themes.
  • Switch to the new theme via your WordPress Dashboard.

If you choose to upload the whole theme and switch to it, you may lose your Theme Customizer data and will have to add those back in.

 

FTP Selective Updating

On the other hand, if you have customized some files in the core theme contents, you should consider selective updating, which simply means updating only the files that are pointed out in the theme’s changelog.

There are a couple programs out there that will allow you to compare versions of files, in order to catch customizations you may not remember. Some recommended programs are WinMerge (Windows), Kaleidoscope (OSX), and handy GitHub (OSX) & (Windows).

 

Recommended

Overall, the safest and cleanest way to update your theme is to leave your currently modified theme on your server/site as is, rename the folder of the newly updated theme, upload the new theme, and modify that to match your original custom work. In this way, if something has gone wrong with the new version, you’re just a few clicks away from getting things back to how they originally were.

Please note that  we are not responsible for content loss, database errors and such, which may happen to your WordPress install upon an incorrectly applied theme update.

 

Child Theme

A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme.

 

Why use a Child Theme?

There are one main reason why you would want to use a child theme: If you modify a theme directly and it is updated, then your modifications WILL be lost. By using a child theme you will ensure that your modifications are preserved.

 

Installing the Child theme

Log in to your site’s administration panel, and go to “Administration Panels > Appearance > Themes”. Click “Add New” and follow the directions to upload the daria-child.zip file, located in the daria-pack folder.

Next simply click “Activate” and both the Daria theme and Daria child theme will be active on your WordPress site. Now you’re ready to customize away.

 

Customizing Template Files

If you want to change more than just the stylesheet, your child theme can override any file in the parent theme: simply include a file of the same name in the child theme directory, and it will override the equivalent file in the parent theme directory when your site loads.

For instance, if you want to change the PHP code for the site header, you can include a header.php in your child theme’s directory, and that file will be used instead of the parent theme’s header.php.

 

Child Theme Functions.php

Unlike style.css, the functions.php file of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent’s file.)

In that way, the functions.php of a child theme provides a smart, trouble-free method of modifying the functionality of a parent theme.

 

Adding PHP Functions

Say that you want to add a PHP function to your theme. The fastest way would be to open the daria/functions.php file and put the function there… But that’s not smart: The next time Daria is updated, your function will disappear (as the entire contents of the daria folder are replaced upon an update).

However, there is an alternative way which is the smart way: you can create a child theme, add a functions.php file in it, and add your function to that file. The function will do the exact same job from there too, with the advantage that it will not be affected by future updates of the parent theme.

Do not copy the full content of functions.php of the parent theme into functions.php in the child theme. It’s not a good practice by any means.

 

Modifiying PHP Functions

You can use this same exact methodology to modify functions that are within the parent theme’s files. Let’s take a quick look at an example.

Below is an example of a typical function within most of our WordPress themes – a template tag that displays the entry date.

And then edit it as you see fit. This function will load before the one in the theme, which is pluggable — that is, replaceable by a child theme — conditionally.

Note that this example is for this specific function, you can do the same with any pluggable function that contains the following:

To learn more, read the this article on the WordPress Codex.

 

Translation Theme

You can find .POT file in next folder wp-content/themes/daria/lang/.

  1. Install Loco Translate Plugin.
  2. Read more here.
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

All rights reserved © 2020. Made with ❤ by CodyShop

0
Would love your thoughts, please comment.x
()
x
We use cookies. If you continue to use the site, we will assume that you are satisfied with it.
I agree