Barcelona. Theme Documentation

Wordpress News & Magazine Theme


Welcome to the Barcelona Wordpress Theme by Aggressive Motions. Thank you for choosing us. In this documentation, you’ll find almost everything related to this theme. If you find something that we missed to explain or have any questions, please contact us on contact@aggressivemotions.com or create a ticket on Aggressive Motions Support.

Extract the contents of the zipped package downloaded trom Themeforest.net to your computer. In the contents of the package, you’ll find these files below:
There are two possible ways to install the theme:
 
Install via Wordpress (Recommended)
  1. Go to Appearance → Themes → Add New
  2. Click Upload Theme (on the top)
  3. In the uploader screen choose barcelona.zip from your computer.
  4. Click Activate after upload process.

 

Install via FTP
  1. Extract the barcelona.zip file
  2. Upload the extracted barcelona folder to /wp-content/themes/ folder on your server using with any FTP software.

If you are not familiar with FTP or looking for any FTP software, FileZilla is easy to use.

 
If you install Barcelona. theme on a website that already has images uploaded, this plugin allows you to delete all old images size and regenerate the thumbnails for image attachments as Barcelona. theme supports.
 
If you didn’t install Force Regenerate Thumbnails plugin, check "Recommended Plugins" section.
 
To regenerate images, follow this steps:

Auto Update

Barcelona. theme recommends some plugins after installation. One of them is “Envato Wordpress Toolkit” which automatically alert you on your dashboard when a new version of the theme is available.
 
If you didn’t install the plugin yet, follow these steps:
To establish an Envato Marketplace API connection navigate to the “Envato Toolkit” page and insert your Marketplace username and secret API key in the designated input fields. To obtain your API Key, visit your “My Settings” page on any of the Envato Marketplaces.
 
The best tutorial about this plugin can be found at: http://wpmu.org/envato-wordpress-toolkit-a-themeforest-auto-updater/
 

Update Manually

It’s always recommended to create a backup of your site before update. If you encounter an issue during update, do not panic. Try to update manually again.
The package you downloaded from Themeforest.net includes a file named barcelona-demo.xml. This file contains demo content except licensed images which are replaced by placeholders.
 
To import sample data, follow these steps:
  1. Go to Tools → Import
  2. In the import page screen click on Wordpress in the list.
  3. If this plugin didn’t installed yet
    • On the popup window click Install Now
    • After installed successfully, click Activate Plugin & Run Importer
  4. Select barcelona-demo.xml file and run the import process
After successfully import, go to Appearance → Menus and assign “Main Nav” menu to the “Main Navigation Menu” theme location. (More info about menus)
 

Barcelona. theme has plenty of options to customize the appearance of the theme. Navigate to Apparance → Theme Options to make changes.

Logos & Icons
In this section you can either add an image or input text as logo for header and footer. Also you can add your icons for different apple devices and set a favicon for your website.
Layout Settings
Sidebar Settings
In this section you can choose global default sidebar and create custom sidebar to use certain post, page or category.
Social Settings
In this section you can add your social media links and api credentials of facebook and twitter to use in certain parts of the theme.
Typography
In this section you can select one of Google font for body or headings.
Custom Codes
In this section you can add your custom css code and custom codes for header and footer (like Google Analytics, Yandex Metrica, Conversion Tracking code etc.)
Color Scheme
In this section you can choose either dark or light version of main nav menu, mega menu and footer. Also you can change the color of selection of your website.
Advertisement
In this section you can add your ad code to header for different screen sizes.
 
Barcelona. theme has a lot of options to change the style of various archive pages. Here is the list of the pages that you can customize.
In every single layout settings page mentioned above has these options:
Posts Layout
In this section you can change the way posts are displayed on the page.
 
 
Default Sidebar
Here you can change default sidebar of the page.
 
Sidebar Position
Here you can set the position of sidebar either left or right, or make it invisible.
 
Display Breadcrumb
Whether to display breadcrumb on the page or not.
 
Header Ad
Here you can add your ad code to the header for different screen sizes spesifically for the page or inherit from global settings. (Theme Options → Advertisement)
 
Background
Here you can set background for the page or inherit from global settings. (Appearance → Background)
 
With Barcelona. theme you can easily create your own page with using several different module layouts. To do this:
Page Builder meta box has two sections:
 
1. Featured Posts
Here you can add featured posts at the top of the page.
 
2. Modules
Here you can create modules to compose a page. To do this, click Add New to create a module and configure settings for that module. You can re-order modules that you add with drag & drop.
 
Here is a short video demonstrating the use of Page Builder.
 
Barcelona. theme allows you to manage your categories more customizable than default wordpress category functionality.
 
You can add featured posts, select post layout, put a custom background and header ad, set sidebar position and so on. Check category add/edit screen to manage these options.
 

Barcelona. theme gives you plenty of options to customize your posts. You can manage your default post options by navigating Theme Options → Layout Settings → Single Post

Also you can customize any post spesifically from the meta box named Post Options right under text editor in post edit or new post screen.

Audio Post

In order to make audio post:
  1. In the post edit or new post screen, find the meta box named “Format” and select “Audio”.
  2. A new meta box will appear above text editor with the name of “Post Format Options: Audio”.
  3. Paste your audio embed code into the textbox.
  4. Update/Publish the post.

Video Post

In order to make video post:
  1. In the post edit or new post screen, find meta the box named “Format” and select “Video”.
  2. A new meta box will appear above text editor with the name of “Post Format Options: Video”.
  3. Paste your video embed code into the textbox.
  4. Update/Publish the post.

Gallery Post

In order to make gallery post:
  1. In the post edit or new post screen, find meta the box named “Format” and select “Gallery”.
  2. A new meta box will appear above text editor with the name of “Post Format Options: Gallery”.
  3. Click Create Gallery or Edit Gallery to compose a gallery.
  4. Update/Publish the post.

Paginated Post

You can split a post/page up into different web pages so that is has pagination. All you have to do is type:
 
<!--nextpage-->
 
into the text editor where you would like your page breaks to appear. You must be in “Text” view when you make changes.
Using Gallery Inside Post
To put a gallery inside your post:
  1. In the post edit or new post screen, click “Add Media” button above text editor.
  2. In the popup window click “Create Gallery” on the left.
  3. Select images to compose a gallery and click “Create a new gallery”.
  4. In the gallery edit screen manage gallery options and click “Insert Gallery”.

For more information about wordpress posts, check the link below.

 

Barcelona. theme gives you plenty of options to customize your pages. You can manage default page options by navigating Theme Options → Layout Settings → Page

Also you can customize any page spesifically from the meta box named Page Options right under text editor in page edit or new page screen.

Contact Page
You can create a contact page with using “Contact Form 7” plugin. To do this:
  1. If you didn’t install this plugin before:
    1. Go to Appearance → Install Plugins
    2. Hover over “Contact Form 7” and click “Install Plugin”
  2. Go to Contact on the left menu
  3. There will be a default contact form created, simply copy shortcode of it.
  4. Add/Create a new page and paste the shortcode into the text editor.
  5. Publish/Update Page
Barcelona. theme comes with predefied styles for Contact Form 7.
Authors Page Template
In order to make author page
  1. In the page edit or new page screen select “Authors” in Template meta box
  2. Update/Publish Page

For more information about wordpress pages, check the link below.
https://codex.wordpress.org/Pages
WordPress Widgets add content and features to your Sidebars. They can be added, removed, and rearranged on the Theme Customizer (Appearance → Customize) or Appearance → Widgets in the WordPress Administration Screens. Barcelona. theme comes with 8 widgets.
Barcelona. Posts
This widget shows the posts with a lot of options that you can customize.
 
Barcelona. Slider Posts
This widget is similiar as Barcelona. Posts widget. But displays in the style of slider.
 
Barcelona. Facebook Box
This widget shows Facebook’s page plugin with its options that you can customize. Add this widget to get more likes to your Facebook page.
 
Barcelona. Google Plus Box
This widget shows Google+ Badge in your site with its options that you can customize. Add this widget to promote your Google+ page.
 
Barcelona. Instagram Feed
This widget shows latest instagram images from your instagram profile.
 
Barcelona. Social Media Icons
This widget allows you to add social media icons of popular social networks to your website.
 
Barcelona. About Me
This widget allows you to add your image and a short description about you.
 
For more information about wordpress widgets, check the link below.
https://codex.wordpress.org/WordPress_Widgets
Barcelona. theme comes with 3 different shortcodes. Barcelona. Shortcode plugin have to be activated in order to make shortcodes work.
 

Accordion Menu

Adds accordion menu. Use agg_accordion tag to wrap agg_accordion_item tags.
 
Example of use:
 
[agg_accordion multiselectable="false"]
 
   [agg_accordion_item title="Title 1"]
      Item Content 1
   [/agg_accordion_item]
 
  [agg_accordion_item title="Title 1"]
      Item Content 2
   [/agg_accordion_item]
  
   [agg_accordion_item title="Title 1"]
      Item Content 3
   [/agg_accordion_item]
 
[/agg_accordion]
 

Custom Image Ad

You can add your custom image ads with this shortcode.
 
Example of use:
 
[agg_ad url="AD_URL" image="AD_IMAGE" width="728" height="90" target="_blank"]
 

Tabs

Adds a box that has clickable tabs with title and content.
 
Example of use:
 
[agg_tabs theme=”dark|light”]
 
   [agg_tab title=”Section A”]
      Content A
   [/agg_tab]
 
   [agg_tab title=”Section B”]
      Content B
   [/agg_tab]
 
   [agg_tab title=”Section C”]
      Content C
   [/agg_tab] 
 
[/agg_tabs]
 

Columns

Adds shortcodes to create columns in your posts or pages.
 
Example of use:
 
[agg_row]
 
   [agg_col size=”1/3”]
      Column Content 1
   [/agg_col]
 
   [agg_col size=”1/3”]
      Column Content 2
   [/agg_col]
 
   [agg_col size=”1/3”]
      Column Content 3
   [/agg_col] 
 
[/agg_row]
 
 
Here is all available column sizes:

 

Icons

Adds icons to add your icons in your posts, pages or nav menu.
 
Example of use:
 
[agg_icon icon="bars"]
 
You can find the list of icons here:
http://fontawesome.io/icons/
 
 
 
For more information about wordpress shortcodes, check the link below.
https://codex.wordpress.org/Shortcode
 
You can change your site background with Barcelona. theme more customizable than default wordpress background functionality.
 
To change global site background:
  1. Go to Appearance → Customize
  2. On the left menu click
    1. Background Image to set an image to the background or
    2. Colors to set a background color to your site.
You can set different background for any post or page spesifically. To do this:
  1. Add/Edit a post
  2. In the Post Options meta box, click “Background
  3. Manage background of this post
  4. Publish/Update post

Also you can set a custom background for any category spesifically. To do this:
  1. Create/Edit a category
  2. Select “Custom” from radio boxes in “Background” section
  3. Manage background of this category
  4. Add/Update category
Similarly, you can set your custom background spesifically for categories, author archive pages, search result pages, tag pages, post archives or globally for single posts from Theme Options → Layout Settings
Disqus is a networked community platform used by hundreds of thousands of sites all over the web. With Disqus, your website gains a feature-rich comment system complete with social network integration, advanced administration and moderation options, and other extensive community functions.
 
You can add disqus comment system to your website easily. First, you need to create a site from disqus. Follow the instructions below:
  1. Click https://publishers.disqus.com/engage (If you didn't create a disqus account, signup before)
  2. Click Install on Your Site on the top right.
  3. Add your site name and disqus url. Then click "Finish Registration".
  4. Go to Theme Options → Layout Settings → General and add your disqus url here.
Barcelona. theme allows you to translate the theme into any language. To translate the theme:
  1. Download and install POEdit translation editor (https://poedit.net/)
  2. Go to the theme translation folder (barcelona/languages/)
  3. Make a copy of the file “barcelona.po” and rename the file to the locale of your language. For example, German would be de_DE.po. See language code list here. http://codex.wordpress.org/WordPress_in_Your_Language
  4. Open POEdit and load the file. (i.e de_DE.po)
  5. Translate all the strings in the list and save changes. After you save, you will have two files. (i.e. de_DE.po and de_DE.mo)
  6. Upload these files to barcelona/languages/
  7. For WordPress 4.0 and above, go to Settings → General and select Site Language
  8. For WordPress 3.9.2 and below, open your wp_config.php file in the root, and find this line: define(‘WPLANG’, ‘’); Change it into your language code. For example, define(‘WPLANG’, ‘de_DE’);
Barcelona. theme has full support of RTL (Right to Left) version of your site. If your language is RTL, the theme automatically detects it and loads RTL css file.
 
How can i change or display author/user avatar?
To change user avatar (seen on author box, author archive page or author page template etc. ) you have two options:
  1. Wordpress fetches user avatar automatically from your Gravatar.com by default. Create a free account on gravatar.com and make sure the email of the user is the one used to create the Gravatar account.
  2. You can install some plugin which will allow you to change the user avatar instead of registering gravatar. For example, check this plugin called Simple Local Avatars
How can i add Google Analytics Code to my site?
Simply go to Appearance → Theme Options → Custom Codes and paste your code into the “Header Custom Code” textfield.

I composed a page with using Page Builder. How can i set this page as default home page?
  1. Go to Appearance → Customize
  2. Click Static Front Page
  3. Select your page in the Front Page
If you have any issues about installation or find any bugs related with Barcelona. theme, you can open a ticket from the link below.
 
http://support.aggressivemotions.com
 
Please provide your envato purchase code and your envato username in your ticket.

Front-End

Bootstrap - http://getbootstrap.com
Theia Sticky Sidebar - https://github.com/WeCodePixels/theia-sticky-sidebar
jQuery lockfixed - http://www.directlyrics.com/code/lockfixed
Backstretch - http://srobbin.com/jquery-plugins/backstretch
FitVids - http://fitvidsjs.com
Boxer - http://classic.formstone.it/boxer
cookie.js - https://github.com/florian/cookie.js
retina.js - https://github.com/imulus/retinajs
Picturefill - https://github.com/scottjehl/picturefill
OwlCarousel2 - https://github.com/smashingboxes/OwlCarousel2
Font Awesome - http://fontawesome.io
Javascript-Equal-Height-Responsive-Rows - https://github.com/Sam152/Javascript-Equal-Height-Responsive-Rows

Back-End

OptionTree - https://github.com/valendesigns/option-tree
TGM Plugin Activation - http://tgmpluginactivation.com
Hybrid Media Grabber - http://themehybrid.com/hybrid-core
Mobile Detect - https://github.com/serbanghita/Mobile-Detect
 
All images used on live preview purchased from shutterstock and these are not included in the theme package.
 
If you want to report any license issue, please contact us on contact@aggressivemotions.com