Enfold Documentation
  • Home
  • Changelog
  • Support
  • Menu Menu
  • Link to X
  • Link to Dribbble

Widget Area

Add a sitewide notification bar! Access widget area to display your information here.

Stacked widget area, logo and menu.

Phone: 601-785-8085

Search Search

Click me Call to Action Click Again
100%

Faster and smarter!

Grid RowAnimated CountdownPortfolio GridAnimated NumbersBlog PostCatalogueCode BlockCommentsContent SliderContact FormFullwidth Sub MenuHeadline RotatorIconIcon BoxIcon ListMasonryMailChimp SignupMagazineAccordion SliderTeam MemberTestimonialsTabsTableSocial Share ButtonsSeparator / WhitespacePromo BoxProgress BarPost SliderVideoPartner/Logo ElementMasonry GalleryImage With HotspotsGoogle MapImageGalleryFullwidth Easy SliderFullscreen SliderNotificationAnimationBreadcrumbsTab SectionsStretched LayoutEnfold showcaseHosting RequirementColor SectionAccordionFeatured Image SliderEasy SliderAdvanced LayersliderColumnsFooterIntro to layout builderPaginationButtonSpecial headingAdd custom CSSAdd Custom JS or PHP ScriptEnfold ChangelogMenuHeaderMega MenuLogooptimizationHooks and FiltersLightboxShopPersonalize themesidebarSearchTranslationTypographyExample of Widget Left, Logo center, Menu rightExample of Widget Left Menu center Logo rightHow to use the custom codeHow to clear the cacheExample of color section overlayFullwidth ButtonButton RowChild ThemeQuick setupTheme RegistrationPage SetupImport DemosInstall enfold themeTheme updateBackup WordPress SiteBackup custom post typesBackup theme settingsInstall WordPress on localhostPrivacy & CookiesGoogle AnalyticsInstagramCustom Element TemplatesOpenStreetMaps - Leaflet MapsAccessibilityIcon CirclesChart ElementCustom Layout & Dynamic ContentDismissible Admin Notice BoxSVG Icon Sets

Widget one

Widget two

Video Widget background

Magazine

Overview

Magazine element makes it easy to display blog posts, portfolio entries, products and also plugin additions, like events… in a magazine layout.  The magazine layout can be customized to display the list of entries and build beautiful magazine style news sites.

Example of Magazine element.

Code Snippets

How to use the snippets?

  • Add the CSS Snippets to Enfold child theme styles.
  • Add the JS and PHP scripts to your child theme functions.php file.
  • Shortcodes can be used in a text area in pages, posts, sliders and widget areas. Enable debug mode to view the page shortcode.
  • Enable custom CSS class name support to add your class names to the theme elements.
  • Disable script merging and clear the cache to view the changes on the frontend.

NOTE: If the code snippets produce a different result on your site, it may be because the settings on your site are different or due to any customization already added to achieve a similar result. Please try removing your customization if any and feel free to change the values in the example codes to suit your design.

Shortcode

[av_magazine link='category,105' items='5' offset='0' tabs='aviaTBtabs' thumbnails='aviaTBthumbnails' heading_active='aviaTBheading_active' heading='Economy' heading_link='category,1' heading_color='theme-color' heading_custom_color='#ffffff' first_big='aviaTBfirst_big' first_big_pos='left' custom_class='' admin_preview_bg='' av_uid='av-48cict']

Customization

Heading, Title and Content

Magazine Heading: The heading colo can be set in the Magazine element options. To add other advance styling or background color to the Magazine heading please use the below CSS code.

/*----------------------------------------
// CSS -  Magazine Heading
//--------------------------------------*/
#top .av-magazine-top-bar {
    background: #ebebeb;
    padding: 0 10px;
}

Magazine Title: Titles in the magazine layout inherit the styles from the theme options. To custom style the magazine titles please use the below CSS.

/*----------------------------------------
// CSS -  Magazine title
//--------------------------------------*/

#top .av-magazine .av-magazine-title {    
    font-weight: 900!important;
    color: coral;
}

Magazine Content: Magazine content is no different when it comes to inheriting the styles. If you like to custom style the magazine content please use the below CSS.

/*----------------------------------------
// CSS -  Magazine Content
//--------------------------------------*/

#top .av-magazine-content.entry-content {
font-size:12px;
color:#000;
line-height:1.6em;  
padding:0 0 10px 0;
}

Metadata: Metadata also inherits styles from the theme options. To custom style the metadata please use the below CSS.

/*----------------------------------------
// CSS -  Magazine Meta
//--------------------------------------*/

#top .entry-content-header .av-magazine-time {
font-size:9px;
color: #9cc2df;
letter-spacing:.06em; 
font-weight:600;
}

Thumbnail Size

The thumbnail size of the magazine element can be changed using the below CSS.

/*----------------------------------------
// CSS -  Magazine Thumbnail size
//--------------------------------------*/

#top .av-magazine-entry-small .av-magazine-thumbnail {    
    margin: 0 15px 15px 0;
    width: 150px;
    min-height: 100px;
}

#top .av-magazine-entry-small .av-magazine-thumbnail img {
    width: 150px;
    max-height: 100px;
}

/* Thumbnail width in mobile */
@media only screen and (max-width: 768px) {
#top .av-magazine-entry-small .av-magazine-thumbnail {    
    margin: 0 10px 10px 0;
    width: 75px;
    min-height: 50px;
}

#top .av-magazine-entry-small .av-magazine-thumbnail img {
    width: 75px;
    max-height: 50px;
}
}

However, depending on the size you choose the thumbnail may not fill in the whole thumbnail area or may the image looks blurry. To fix this issue please perform the steps:

  • Login to FTP.
  • Look for the magazine.php file in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine.php
  • Open the file in a file editor, press Ctrl + F and search for “image_size” till you find the below line:
'image_size'     => array( 'small'=> 'thumbnail', 'big' => 'magazine')
  • Change it to:
'image_size'     => array( 'small'=> 'medium', 'big' => 'magazine')

After the file is updated, clear the cache and refresh the page to view changes.

Magazine elements in RTL

Using CSS we can interchange the magazine element Columns, Headings and Thumbnails and display this element as part of a layout design or to display in a RTL version.

/*----------------------------------------
// CSS -  Magazine RTL
//--------------------------------------*/

/* Columns */
.av-magazine-sideshow.flex_column.av_one_half {
        border-right-width: 1px;
        border-right-style: solid;
        border-left-width: 0;
        margin-left: 0
}
/* Hero Image */
#top .av-magazine-hero {
        float: right;     
}
/* Small Thumbnails*/
.av-magazine-thumbnail {
        float: right;
        margin-left: 15px;
}
/* Heading */
.av-magazine-top-heading {
        float: right;
}
/* Sort filter */
.av-magazine-sort {
  float:left;
}

Open magazine elements in new window

To open the magazine element links in a new tab please add the below code in the child theme  functions.php

//------------------------------
// php -  open Magazine link in new tab
//------------------------------

function mag_new_tab(){
?>
<script>
jQuery(window).on('load', function(){
jQuery('.av-magazine-title a ').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'mag_new_tab');

How to change the default thumbnail image

To change the default image of the magazine element thumbnail please use the below CSS.

/*----------------------------------------
// CSS -  Magazine Default Thumbnail
//--------------------------------------*/

/* 

For this code to work please enter your default image URL in the background rule.

*/

.av-magazine-thumbnail a {
z-index: 1;
}
.av-magazine-thumbnail a:before {
content: ”;
background: #000 url(ENTER IMAGE URL HERE) no-repeat center center;
position: absolute;
top: 0;
left: 0;
right:0;
bottom:0;
background-size:cover;
}
/* Hero image min height*/
.av-magazine-hero .av-magazine-thumbnail {
  min-height:200px;
}

Resource

Contributed video:

Magazine Element Tutorial

Contents

© Copyright - Enfold Documentation - Enfold Theme by Kriesi
  • Privacy Policy
  • Legal Information
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

OK

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Google Analytics Cookies

These cookies collect information that is used either in aggregate form to help us understand how our website is being used or how effective our marketing campaigns are, or to help us customize our website and application for you in order to enhance your experience.

If you do not want that we track your visit to our site you can disable tracking in your browser here:

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Other cookies

The following cookies are also needed - You can choose if you want to allow them:

Privacy Policy

You can read about our cookies and privacy settings in detail on our Privacy Policy Page.

Accept settingsHide notification only