-
Search Results
-
Topic: Facebook coments Enfold
Hi all
I have tried several plugins of facebook comments but does not place the comments in the correct place puts them always inside the entry above the share buttons. it looks bad. What is the facebook comment plugin that works well with Enfold?
Thank you
Hi,
When using the button element from the avia layout builder I’m not able to add/change the link because the dropdown element has disappeared.
I’m running the latest Enfold version 3.8.4 on PHP version 7.1.0. All plugins and WordPress it self is up to date, have already tried to turn of all plugins to no avail.
Topic: Problem with enfold 3.8.4
I have already used the enfold theme more then once and never had a problem. This time there is something going on and I can’t figure out what it is. I have created this lay-out on a test server and everything worked fine. On the sever of the client the theme does not work alright.
When I change something by adding a new block, or edit a content section, the whole page is behaving strange, see the link in the private content. There is also a problem with adding a link zo the button. ik can create one, but not add a link to it. There is no window next to ‘button link’.I have tried a clean installation, deactivated all plugins, and removed all CSS in the theme, imported the parent theme settings but nothing is solving the problem. I hope you can figure is out…
Hallo liebes Kriesi-Team,
bin schon länger Fan von Euren Themes. Ich selbst betreibe wordpress support im kleinen und betreue auch die Webseite unseres familiengeführten Hotels http://www.pinzger.tirol.
Wir überlegen für dieses Jahr einen optischen und ein bisschen “aufgehübschten “Relaunch.Gerne würde ich Euer Enfold Theme als Grundlage nehmen, möchte aber gerne wissen, ob eine Adaptierung für unseren Zweck möglich ist.
1.) wir möchten gerne wie bisher unsere Zimmerkategorien präsentieren, ist es mögich evtl. vorhandene php scripts aus dem alten theme einzupflegen bzw. was würde eine neuporgrammierung kosten?
2) Wir möchten den externen Buchungsrechner (verschiedene Widgets möglich, z.b. Buchungsbelegung, Quick Search, lightbox) wieder implementieren.
3) verknüpfung mit den verschiedenen kanälen wie tripadvisor, booking etc zusätzlich zu den üblichen social media kanälen (da bräuchten wir noch buttons)Vielleicht könnt ihr mir ein Angebot machen, mit welchem Aufwand ich hier rechnen muss. Vielen Dank vorab für Eure Mühen.
Für Fragen erreicht ihr mich unter:
+436645287346 oder (Email address hidden if logged out)liebe Grüße, Judith Schuster
vielen Dank vorab für Eure Zeit,
liebe Grüße,
Judith SchusterHi
My wordpress was taken down and I am in the process of recreating my website again. I purchased your program “Enfold – Responsive Multi-Purpose Theme (Regular License)” which I use on my site. I have downloaded your program and I am not able to get my wordpress to except you program.
I use wordpress and when I go to add your plugin it says, “If you have a plugin in a .zip format, you may install it by uploading it here.” I then click on the browse button for the zip file that I have downloaded from CodeCanyon to show your file location. I then click on the “Install Now” button and I get the following message listed below.
Installing Plugin from uploaded file: themeforest-4519990-enfold-responsive-multipurpose-theme-wordpress-theme.zip
Unpacking the package…
Installing the plugin…
The package could not be installed. No valid plugins were found.
Plugin install failed.
Return to Plugin InstallerCan you email me a clean zip file of the program so I can upload it to my wordpress site.
Thank you,
Alberto Manfredi
Gunny’s Call22244b18-caba-4141-bb3c-d60a7f29a662 – 16 Nov 2015 REGULAR LICENSE
I’m using the “Quantities and Units for WooCommerce” plugin to enable decimal quantities and Kg as units.
I tried to disable the Enfold +/- as suggested by Josue in his answer HERE, but there are some problems. Here are my try:Theme: Twenty Seventeen – Plugin: enabled
the HTML +/- buttons are revealed, fractional quantities can be saved to cartTheme: Enfold – Plugin: enabled
the Enfold +/- buttons are not working, manual input with fractional quantities is not accepted by pageTheme: Enfold child with Josua code to disable Enfold +/- buttons – Plugin: enabled
Enfold +/- buttons are disappeared as expected
The HTML +/- buttons are not revealed, manual input with fractional quantities is accepted by page
The decimal separator in the header cart is wrong (‘.’ instead of ‘,’ as defined in woocommerce config)
https://drive.google.com/file/d/0B7baurTblFiQQWloLUVmeEJCN2M/view?usp=sharing
https://drive.google.com/file/d/0B7baurTblFiQX0x0X2pwRGF1V1U/view?usp=sharingObviously, the fractional quantities directly supported by Enfold +/- buttons … is the desired solution :-)
Topic: Animations
Hi!
We are loving Enfold! :)
Our client loves animations. Some elements already feature animations, and it is great, for example “image element”. I just have to edit image, go to “animation” tab/button and that’s it.However, other elements do not let me add animation, for example: a header, a woocomerce products grid… and so on.
We would love to add animation to all these items, because we want to satisfy our customer.What do you think would be a good approach for getting this done? Example: by adding a animation jquery library. If so, could you recommend us one? Thanks a lot. The theme is great!
Hi,
before I get into the problem: I’ve disabled all plugins and I’m using the enfold default theme.
If I use a specific order of elements in the Avia Architekt it generates invalid HTML code.
(ERROR: Stray end tag div)I’m starting with an color section followed by default layout elements, for example three columns with arbitrary content.
If I use the scroll down arrow (by checking the box) inside the color section the generated code is invalid.My setup looks like this:
- 1. Color section (scroll down button enabled) with a special headline inside
- 2. 1/5 + 3/5 + 1/5 layout elements
If the scroll down button is disabeld that setup works.
If I use a grid row instead of the layout elements the generated HTML is valid although the scroll down button is enabled.This wouldnt be a big deal, cause browsers usually compensate these small errors and rendering is fine…
But I’m using pjax jquery-plugin to load dynamically content if navigating the website: basically I’m loading the content of the div#main and replacing it.
Because there is 1 closing </div> too much (which makes the code invalid), the <footer> element is outside the #main-div and will not be replaced, so I end up with an page without footer.To be clear: the problem is not the jquery-plugin, it works fine if the html code is valid.
As a workaround I need to work with a grid row instead of the default layout elements.I hope it all makes sense and you can help me :)
I’ll send you some links to the development server… don’t judge me, its in a very early/experimental stage ;-)Thank you!
RobertHello, i tried to turn on the custom css support for all ALB elements and since then when i try to save/actualize a page in the backend, the page always will show a blank page afterwards (by the way, it saved itself but just leave a blank page, reloading doesn’t help).
I also deleted the css ALB code again from the function.php (enfold and child), restarted the server and the computer, but nothing has helped.
I guess i hasn’t forgotten any code … or added:enfold-child (functions.php):
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*//*m_code Adding Google Font*/
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Merienda’] = ‘Merienda’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Source Sans Pro’] = ‘Source Sans Pro:400,600,800’;
return $fonts;
}?>
enfold-child (functions.php):
<?php
if ( !defined(‘ABSPATH’) ){ die(); }global $avia_config;
/*
* if you run a child theme and dont want to load the default functions.php file
* set the global var below in you childthemes function.php to true:
*
* example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
* The default functions.php file will then no longer be loaded. You need to make sure then
* to include framework and functions that you want to use by yourself.
*
* This is only recommended for advanced users
*/if(isset($avia_config[‘use_child_theme_functions_only’])) return;
/*
* create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
*/
$avia_config[‘posts_on_current_page’] = array();/*
* wpml multi site config file
* needs to be loaded before the framework
*/require_once( ‘config-wpml/config.php’ );
/*
* These are the available color sets in your backend.
* If more sets are added users will be able to create additional color schemes for certain areas
*
* The array key has to be the class name, the value is only used as tab heading on the styling page
*/$avia_config[‘color_sets’] = array(
‘header_color’ => ‘Logo Area’,
‘main_color’ => ‘Main Content’,
‘alternate_color’ => ‘Alternate Content’,
‘footer_color’ => ‘Footer’,
‘socket_color’ => ‘Socket’
);/*
* add support for responsive mega menus
*/add_theme_support(‘avia_mega_menu’);
/*
* add support for improved backend styling
*/add_theme_support(‘avia_improved_backend_style’);
/*
* deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
*/add_filter(‘avia_mega_menu_walker’, ‘__return_false’);
/*
* adds support for the new avia sidebar manager
*/add_theme_support(‘avia_sidebar_manager’);
/*
* Filters for post formats etc
*/
//add_theme_support(‘avia_queryfilter’);/*
* Register theme text domain
*/
if(!function_exists(‘avia_lang_setup’))
{
add_action(‘after_setup_theme’, ‘avia_lang_setup’);function avia_lang_setup()
{
$lang = apply_filters(‘ava_theme_textdomain_path’, get_template_directory() . ‘/lang’);
load_theme_textdomain(‘avia_framework’, $lang);
}avia_lang_setup();
}/*
function that changes the icon of the theme update tab
*/if(!function_exists(‘avia_theme_update_filter’))
{
function avia_theme_update_filter( $data )
{
if(current_theme_supports(‘avia_improved_backend_style’))
{
$data[‘icon’] = (Email address hidden if logged out) ‘;
}
return $data;
}add_filter(‘avf_update_theme_tab’, ‘avia_theme_update_filter’, 30, 1);
}##################################################################
# AVIA FRAMEWORK by Kriesi# this include calls a file that automatically includes all
# the files within the folder framework and therefore makes
# all functions and classes available for later userequire_once( ‘framework/avia_framework.php’ );
##################################################################
/*
* Register additional image thumbnail sizes
* Those thumbnails are generated on image upload!
*
* If the size of an array was changed after an image was uploaded you either need to re-upload the image
* or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
*/$avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
$avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
$avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘featured_large’] = array(‘width’=>1500, ‘height’=>630 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘extra_large’] = array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false); // images for fullscrren slider
$avia_config[‘imgSize’][‘portfolio’] = array(‘width’=>495, ‘height’=>400 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘portfolio_small’] = array(‘width’=>260, ‘height’=>185 ); // images for portfolio 4 columns
$avia_config[‘imgSize’][‘gallery’] = array(‘width’=>845, ‘height’=>684 ); // images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘magazine’] = array(‘width’=>710, ‘height’=>375 ); // images for magazines
$avia_config[‘imgSize’][‘masonry’] = array(‘width’=>705, ‘height’=>705 , ‘crop’ => false); // images for fullscreen masonry
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);$avia_config[‘selectableImgSize’] = array(
‘square’ => __(‘Square’,’avia_framework’),
‘featured’ => __(‘Featured Thin’,’avia_framework’),
‘featured_large’ => __(‘Featured Large’,’avia_framework’),
‘portfolio’ => __(‘Portfolio’,’avia_framework’),
‘gallery’ => __(‘Gallery’,’avia_framework’),
‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
‘entry_without_sidebar’ => __(‘Entry without Sidebar’,’avia_framework’),
‘extra_large’ => __(‘Fullscreen Sections/Sliders’,’avia_framework’),);
avia_backend_add_thumbnail_size($avia_config);
if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];
/*
* register the layout classes
*
*/$avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ”,’entry’ => ”);
$avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘av-content-small’, ‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
$avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);/*
* These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
* common icons are stored here for easy retrieval
*/$avia_config[‘font_icons’] = apply_filters(‘avf_default_icons’, array(
//post formats + types
‘standard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue836’),
‘link’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue822’),
‘image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80f’),
‘audio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue801’),
‘quote’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue833’),
‘gallery’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80e’),
‘video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80d’),
‘portfolio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue849’),
‘product’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),//social
‘behance’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue915’),
‘dribbble’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fe’),
‘facebook’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f3’),
‘flickr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ed’),
‘gplus’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f6’),
‘linkedin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fc’),
‘instagram’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue909’),
‘pinterest’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f8’),
‘skype’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue90d’),
‘tumblr’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fa’),
‘twitter’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f1’),
‘vimeo’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ef’),
‘rss’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue853’),
‘youtube’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue921’),
‘xing’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue923’),
‘soundcloud’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue913’),
‘five_100_px’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue91d’),
‘vk’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue926’),
‘reddit’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue927’),
‘digg’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue928’),
‘delicious’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue929’),
‘mail’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue805’),//woocomemrce
‘cart’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),
‘details’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue84b’),//bbpress
‘supersticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808’),
‘sticky’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809’),
‘one_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83b’),
‘multi_voice’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83c’),
‘closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue824’),
‘sticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808\ue824’),
‘supersticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809\ue824’),//navigation, slider & controls
‘play’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),
‘pause’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue899’),
‘next’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue879’),
‘prev’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue878’),
‘next_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87d’),
‘prev_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87c’),
‘close’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue814’),
‘reload’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue891’),
‘mobile_menu’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8a5’),//image hover overlays
‘ov_external’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue832’),
‘ov_image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue869’),
‘ov_video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),//misc
‘search’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),
‘info’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue81e’),
‘clipboard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8d1’),
‘scrolltop’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue876’),
‘scrolldown’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue877’),
‘bitcoin’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),));
add_theme_support( ‘automatic-feed-links’ );
##################################################################
# Frontend Stuff necessary for the theme:
##################################################################/*
* Register frontend javascripts:
*/
if(!function_exists(‘avia_register_frontend_scripts’))
{
if(!is_admin()){
add_action(‘wp_enqueue_scripts’, ‘avia_register_frontend_scripts’);
}function avia_register_frontend_scripts()
{
$template_url = get_template_directory_uri();
$child_theme_url = get_stylesheet_directory_uri();//register js
wp_enqueue_script( ‘avia-compat’, $template_url.’/js/avia-compat.js’, array(‘jquery’), 2, false ); //needs to be loaded at the top to prevent bugs
wp_enqueue_script( ‘avia-default’, $template_url.’/js/avia.js’, array(‘jquery’), 3, true );
wp_enqueue_script( ‘avia-shortcodes’, $template_url.’/js/shortcodes.js’, array(‘jquery’), 3, true );
wp_enqueue_script( ‘avia-popup’, $template_url.’/js/aviapopup/jquery.magnific-popup.min.js’, array(‘jquery’), 2, true);wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘wp-mediaelement’ );if ( is_singular() && get_option( ‘thread_comments’ ) ) { wp_enqueue_script( ‘comment-reply’ ); }
//register styles
wp_register_style( ‘avia-style’ , $child_theme_url.”/style.css”, array(), ‘2’, ‘all’ ); //register default style.css file. only include in childthemes. has no purpose in main theme
wp_register_style( ‘avia-custom’, $template_url.”/css/custom.css”, array(), ‘2’, ‘all’ );wp_enqueue_style( ‘avia-grid’ , $template_url.”/css/grid.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-base’ , $template_url.”/css/base.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-layout’, $template_url.”/css/layout.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-scs’, $template_url.”/css/shortcodes.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-popup-css’, $template_url.”/js/aviapopup/magnific-popup.css”, array(), ‘1’, ‘screen’ );
wp_enqueue_style( ‘avia-media’ , $template_url.”/js/mediaelement/skin-1/mediaelementplayer.css”, array(), ‘1’, ‘screen’ );
wp_enqueue_style( ‘avia-print’ , $template_url.”/css/print.css”, array(), ‘1’, ‘print’ );if ( is_rtl() ) {
wp_enqueue_style( ‘avia-rtl’, $template_url.”/css/rtl.css”, array(), ‘1’, ‘all’ );
}global $avia;
$safe_name = avia_backend_safe_string($avia->base_data[‘prefix’]);
$safe_name = apply_filters(‘avf_dynamic_stylesheet_filename’, $safe_name);if( get_option(‘avia_stylesheet_exists’.$safe_name) == ‘true’ )
{
$avia_upload_dir = wp_upload_dir();
if(is_ssl()) $avia_upload_dir[‘baseurl’] = str_replace(“http://”, “https://”, $avia_upload_dir[‘baseurl’]);$avia_dyn_stylesheet_url = $avia_upload_dir[‘baseurl’] . ‘/dynamic_avia/’.$safe_name.’.css’;
$version_number = get_option(‘avia_stylesheet_dynamic_version’.$safe_name);
if(empty($version_number)) $version_number = ‘1’;wp_enqueue_style( ‘avia-dynamic’, $avia_dyn_stylesheet_url, array(), $version_number, ‘all’ );
}wp_enqueue_style( ‘avia-custom’);
if($child_theme_url != $template_url)
{
wp_enqueue_style( ‘avia-style’);
}}
}if(!function_exists(‘avia_remove_default_video_styling’))
{
if(!is_admin()){
add_action(‘wp_footer’, ‘avia_remove_default_video_styling’, 1);
}function avia_remove_default_video_styling()
{
//remove default style for videos
wp_dequeue_style( ‘mediaelement’ );
// wp_dequeue_script( ‘wp-mediaelement’ );
// wp_dequeue_style( ‘wp-mediaelement’ );
}
}/*
* Activate native wordpress navigation menu and register a menu location
*/
if(!function_exists(‘avia_nav_menus’))
{
function avia_nav_menus()
{
global $avia_config, $wp_customize;add_theme_support(‘nav_menus’);
foreach($avia_config[‘nav_menus’] as $key => $value)
{
//wp-admin\customize.php does not support html code in the menu description – thus we need to strip it
$name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’];
register_nav_menu($key, THEMENAME.’ ‘.$name);
}
}$avia_config[‘nav_menus’] = array( ‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)),
‘avia2’ => array(
‘html’ => ”.__(‘Secondary Menu’, ‘avia_framework’).’ <br/><small>(‘.__(‘Will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’).’ ‘.__(‘here’, ‘avia_framework’).’)</small>’,
‘plain’=> __(‘Secondary Menu – will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’)),
‘avia3’ => array(
‘html’ => __(‘Footer Menu <br/><small>(no dropdowns)</small>’, ‘avia_framework’),
‘plain’=> __(‘Footer Menu (no dropdowns)’, ‘avia_framework’))
);avia_nav_menus(); //call the function immediatly to activate
}/*
* load some frontend functions in folder include:
*/require_once( ‘includes/admin/register-portfolio.php’ ); // register custom post types for portfolio entries
require_once( ‘includes/admin/register-widget-area.php’ ); // register sidebar widgets for the sidebar and footer
require_once( ‘includes/loop-comments.php’ ); // necessary to display the comments properly
require_once( ‘includes/helper-template-logic.php’ ); // holds the template logic so the theme knows which tempaltes to use
require_once( ‘includes/helper-social-media.php’ ); // holds some helper functions necessary for twitter and facebook buttons
require_once( ‘includes/helper-post-format.php’ ); // holds actions and filter necessary for post formats
require_once( ‘includes/helper-markup.php’ ); // holds the markup logic (schema.org and html5)if(current_theme_supports(‘avia_conditionals_for_mega_menu’))
{
require_once( ‘includes/helper-conditional-megamenu.php’ ); // holds the walker for the responsive mega menu
}require_once( ‘includes/helper-responsive-megamenu.php’ ); // holds the walker for the responsive mega menu
//adds the plugin initalization scripts that add styles and functions
if(!current_theme_supports(‘deactivate_layerslider’)) require_once( ‘config-layerslider/config.php’ );//layerslider plugin
require_once( ‘config-bbpress/config.php’ ); //compatibility with bbpress forum plugin
require_once( ‘config-templatebuilder/config.php’ ); //templatebuilder plugin
require_once( ‘config-gravityforms/config.php’ ); //compatibility with gravityforms plugin
require_once( ‘config-woocommerce/config.php’ ); //compatibility with woocommerce plugin
require_once( ‘config-wordpress-seo/config.php’ ); //compatibility with Yoast WordPress SEO pluginif(!current_theme_supports(‘deactivate_tribe_events_calendar’))
{
require_once( ‘config-events-calendar/config.php’ ); //compatibility with the Events Calendar plugin
}if(is_admin())
{
require_once( ‘includes/admin/helper-compat-update.php’); // include helper functions for new versions
}/*
* dynamic styles for front and backend
*/
if(!function_exists(‘avia_custom_styles’))
{
function avia_custom_styles()
{
require_once( ‘includes/admin/register-dynamic-styles.php’ ); // register the styles for dynamic frontend styling
avia_prepare_dynamic_styles();
}add_action(‘init’, ‘avia_custom_styles’, 20);
add_action(‘admin_init’, ‘avia_custom_styles’, 20);
}/*
* activate framework widgets
*/
if(!function_exists(‘avia_register_avia_widgets’))
{
function avia_register_avia_widgets()
{
register_widget( ‘avia_newsbox’ );
register_widget( ‘avia_portfoliobox’ );
register_widget( ‘avia_socialcount’ );
register_widget( ‘avia_combo_widget’ );
register_widget( ‘avia_partner_widget’ );
register_widget( ‘avia_google_maps’ );
register_widget( ‘avia_fb_likebox’ );
register_widget( ‘avia_instagram_widget’ );}
avia_register_avia_widgets(); //call the function immediatly to activate
}/*
* add post format options
*/
add_theme_support( ‘post-formats’, array(‘link’, ‘quote’, ‘gallery’,’video’,’image’,’audio’ ) );/*
* Remove the default shortcode function, we got new ones that are better ;)
*/
add_theme_support( ‘avia-disable-default-shortcodes’, true);/*
* compat mode for easier theme switching from one avia framework theme to another
*/
add_theme_support( ‘avia_post_meta_compat’);/*
* make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
*/
add_theme_support(‘force-post-thumbnails-in-widget’);/*
* display page titles via wordpress default output
*/
function av_theme_slug_setup()
{
add_theme_support( ‘title-tag’ );
}add_action( ‘after_setup_theme’, ‘av_theme_slug_setup’ );
/*title fallback*/
if ( ! function_exists( ‘_wp_render_title_tag’ ) )
{
function av_theme_slug_render_title()
{
echo “<title>” . avia_set_title_tag() .”</title>”;
}
add_action( ‘wp_head’, ‘av_theme_slug_render_title’ );
}/*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
/*
* add option to edit elements via css class
*/
// add_theme_support(‘avia_template_builder_custom_css’);Hey Guys,
I’m setting up a small shop on our website. Is there somwhere where i can change the link for the shop more button? I can’t seem to find it if it exists… I want it to redirect to shop instead of the product just added to the cart
Kind regards and thanks!
Tom
Topic: please help me out
Hello,
I run into a problem. I’m trying to add a custom css section to my element builder.
I saw documantation about it and I follow the steps but it dont work.When I paste this line: add_theme_support(‘avia_template_builder_custom_css’); into my functions.php nothing happens. Maybe can you guys help me out what the problem is.
This is my function.php page:<?php
global $avia_config;
/*
* if you run a child theme and dont want to load the default functions.php file
* set the global var below in you childthemes function.php to true:
*
* example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
* The default functions.php file will then no longer be loaded. You need to make sure then
* to include framework and functions that you want to use by yourself.
*
* This is only recommended for advanced users
*/if(isset($avia_config[‘use_child_theme_functions_only’])) return;
/*
* create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
*/
$avia_config[‘posts_on_current_page’] = array();/*
* wpml multi site config file
* needs to be loaded before the framework
*/require_once( ‘config-wpml/config.php’ );
/*
* These are the available color sets in your backend.
* If more sets are added users will be able to create additional color schemes for certain areas
*
* The array key has to be the class name, the value is only used as tab heading on the styling page
*/$avia_config[‘color_sets’] = array(
‘header_color’ => ‘Logo Area’,
‘main_color’ => ‘Main Content’,
‘alternate_color’ => ‘Alternate Content’,
‘footer_color’ => ‘Footer’,
‘socket_color’ => ‘Socket’
);/*
* add support for responsive mega menus
*/add_theme_support(‘avia_mega_menu’);
/*
* deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
*/add_filter(‘avia_mega_menu_walker’, ‘__return_false’);
/*
* adds support for the new avia sidebar manager
*/add_theme_support(‘avia_sidebar_manager’);
/*
* Filters for post formats etc
*/
//add_theme_support(‘avia_queryfilter’);/*
* Register theme text domain
*/
if(!function_exists(‘avia_lang_setup’))
{
add_action(‘after_setup_theme’, ‘avia_lang_setup’);
function avia_lang_setup()
{
$lang = apply_filters(‘ava_theme_textdomain_path’, get_template_directory() . ‘/lang’);
load_theme_textdomain(‘avia_framework’, $lang);
}
avia_lang_setup();
}##################################################################
# AVIA FRAMEWORK by Kriesi# this include calls a file that automatically includes all
# the files within the folder framework and therefore makes
# all functions and classes available for later userequire_once( ‘framework/avia_framework.php’ );
##################################################################
/*
* Register additional image thumbnail sizes
* Those thumbnails are generated on image upload!
*
* If the size of an array was changed after an image was uploaded you either need to re-upload the image
* or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
*/$avia_config[‘imgSize’][‘widget’]
= array(‘width’=>36, ‘height’=>36);
// small preview pics eg sidebar news
$avia_config[‘imgSize’][‘square’]
= array(‘width’=>180, ‘height’=>180);
// small image for blogs
$avia_config[‘imgSize’][‘featured’]
= array(‘width’=>1500, ‘height’=>430 );
// images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘featured_large’]
= array(‘width’=>1500, ‘height’=>630 );
// images for fullsize pages and fullsize slider
$avia_config[‘imgSize’][‘extra_large’]
= array(‘width’=>1500, ‘height’=>1500 , ‘crop’ => false);
// images for fullscrren slider
$avia_config[‘imgSize’][‘portfolio’]
= array(‘width’=>495, ‘height’=>400 );
// images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘portfolio_small’]
= array(‘width’=>260, ‘height’=>185 );
// images for portfolio 4 columns
$avia_config[‘imgSize’][‘gallery’]
= array(‘width’=>845, ‘height’=>684 );
// images for portfolio entries (2,3 column)
$avia_config[‘imgSize’][‘magazine’]
= array(‘width’=>710, ‘height’=>375 );
// images for magazines
$avia_config[‘imgSize’][‘masonry’]
= array(‘width’=>705, ‘height’=>705 , ‘crop’ => false);
// images for fullscreen masonry
$avia_config[‘imgSize’][‘entry_with_sidebar’]
= array(‘width’=>845, ‘height’=>321);
// big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 );
// images for fullsize pages and fullsize slider
$avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);$avia_config[‘selectableImgSize’] = array(
‘square’
=> __(‘Square’,’avia_framework’),
‘featured’
=> __(‘Featured Thin’,’avia_framework’),
‘featured_large’
=> __(‘Featured Large’,’avia_framework’),
‘portfolio’
=> __(‘Portfolio’,’avia_framework’),
‘gallery’
=> __(‘Gallery’,’avia_framework’),
‘entry_with_sidebar’ => __(‘Entry with Sidebar’,’avia_framework’),
‘entry_without_sidebar’
=> __(‘Entry without Sidebar’,’avia_framework’),
‘extra_large’
=> __(‘Fullscreen Sections/Sliders’,’avia_framework’),
);avia_backend_add_thumbnail_size($avia_config);
if ( ! isset( $content_width ) ) $content_width = $avia_config[‘imgSize’][‘featured’][‘width’];
/*
* register the layout classes
*
*/$avia_config[‘layout’][‘fullsize’]
= array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’,
‘meta’ => ”,’entry’ => ”);
$avia_config[‘layout’][‘sidebar_left’]
= array(‘content’ => ‘av-content-small’,
‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
$avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);/*
* These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
* common icons are stored here for easy retrieval
*/$avia_config[‘font_icons’] = apply_filters(‘avf_default_icons’, array(
//post formats + types
‘standard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue836’),
‘link’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue822’),
‘image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80f’),
‘audio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue801’),
‘quote’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue833’),
‘gallery’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80e’),
‘video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue80d’),
‘portfolio’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue849’),
‘product’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),//social
‘behance’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue915’),
‘dribbble’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fe’),
‘facebook’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f3’),
‘flickr’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ed’),
‘gplus’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f6’),
‘linkedin’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fc’),
‘instagram’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue909’),
‘pinterest’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f8’),
‘skype’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue90d’),
‘tumblr’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8fa’),
‘twitter’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8f1’),
‘vimeo’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8ef’),
‘rss’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue853’),
‘youtube’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue921’),
‘xing’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue923’),
‘soundcloud’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue913’),
‘five_100_px’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue91d’),
‘vk’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue926’),
‘reddit’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue927’),
‘digg’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue928’),
‘delicious’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue929’),
‘mail’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue805’),
//woocomemrce
‘cart’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue859’),
‘details’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue84b’),//bbpress
‘supersticky’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808’),
‘sticky’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809’),
‘one_voice’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83b’),
‘multi_voice’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue83c’),
‘closed’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue824’),
‘sticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue808\ue824’),
‘supersticky_closed’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue809\ue824’),
//navigation, slider & controls
‘play’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),
‘pause’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue899’),
‘next’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue879’),
‘prev’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue878’),
‘next_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87d’),
‘prev_big’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue87c’),
‘close’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue814’),
‘reload’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue891’),
‘mobile_menu’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8a5’),
//image hover overlays
‘ov_external’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue832’),
‘ov_image’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue869’),
‘ov_video’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue897’),//misc
‘search’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),
‘info’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue81e’),
‘clipboard’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8d1’),
‘scrolltop’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue876’),
‘scrolldown’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue877’),
‘bitcoin’
=> array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue92a’),));
add_theme_support( ‘automatic-feed-links’ );
##################################################################
# Frontend Stuff necessary for the theme:
##################################################################/*
* Register frontend javascripts:
*/
if(!function_exists(‘avia_register_frontend_scripts’))
{
if(!is_admin()){
add_action(‘wp_enqueue_scripts’, ‘avia_register_frontend_scripts’);
}function avia_register_frontend_scripts()
{
$template_url = get_template_directory_uri();
$child_theme_url = get_stylesheet_directory_uri();//register js
wp_enqueue_script( ‘avia-compat’, $template_url.’/js/avia-compat.js’, array(‘jquery’), 2, false ); //needs to be loaded at the top to prevent bugs
wp_enqueue_script( ‘avia-default’, $template_url.’/js/avia.js’, array(‘jquery’), 3, true );
wp_enqueue_script( ‘avia-shortcodes’, $template_url.’/js/shortcodes.js’, array(‘jquery’), 3, true );
wp_enqueue_script( ‘avia-popup’, $template_url.’/js/aviapopup/jquery.magnific-popup.min.js’, array(‘jquery’), 2, true);wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘wp-mediaelement’ );if ( is_singular() && get_option( ‘thread_comments’ ) ) { wp_enqueue_script( ‘comment-reply’ ); }
//register styles
wp_register_style( ‘avia-style’ , $child_theme_url.”/style.css”, array(), ‘2’, ‘all’ ); //register default style.css file. only include in childthemes. has no purpose in main theme
wp_register_style( ‘avia-custom’, $template_url.”/css/custom.css”, array(), ‘2’, ‘all’ );wp_enqueue_style( ‘avia-grid’ , $template_url.”/css/grid.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-base’ , $template_url.”/css/base.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-layout’, $template_url.”/css/layout.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-scs’, $template_url.”/css/shortcodes.css”, array(), ‘2’, ‘all’ );
wp_enqueue_style( ‘avia-popup-css’, $template_url.”/js/aviapopup/magnific-popup.css”, array(), ‘1’, ‘screen’ );
wp_enqueue_style( ‘avia-media’ , $template_url.”/js/mediaelement/skin-1/mediaelementplayer.css”, array(), ‘1’, ‘screen’ );
wp_enqueue_style( ‘avia-print’ , $template_url.”/css/print.css”, array(), ‘1’, ‘print’ );
if ( is_rtl() ) {
wp_enqueue_style( ‘avia-rtl’, $template_url.”/css/rtl.css”, array(), ‘1’, ‘all’ );
}global $avia;
$safe_name = avia_backend_safe_string($avia->base_data[‘prefix’]);
$safe_name = apply_filters(‘avf_dynamic_stylesheet_filename’, $safe_name);if( get_option(‘avia_stylesheet_exists’.$safe_name) == ‘true’ )
{
$avia_upload_dir = wp_upload_dir();
if(is_ssl()) $avia_upload_dir[‘baseurl’] = str_replace(“http://”, “https://”, $avia_upload_dir[‘baseurl’]);$avia_dyn_stylesheet_url = $avia_upload_dir[‘baseurl’] . ‘/dynamic_avia/’.$safe_name.’.css’;
$version_number = get_option(‘avia_stylesheet_dynamic_version’.$safe_name);
if(empty($version_number)) $version_number = ‘1’;wp_enqueue_style( ‘avia-dynamic’, $avia_dyn_stylesheet_url, array(), $version_number, ‘all’ );
}wp_enqueue_style( ‘avia-custom’);
if($child_theme_url != $template_url)
{
wp_enqueue_style( ‘avia-style’);
}}
}if(!function_exists(‘avia_remove_default_video_styling’))
{
if(!is_admin()){
add_action(‘wp_footer’, ‘avia_remove_default_video_styling’, 1);
}function avia_remove_default_video_styling()
{
//remove default style for videos
wp_dequeue_style( ‘mediaelement’ );
// wp_dequeue_script( ‘wp-mediaelement’ );
// wp_dequeue_style( ‘wp-mediaelement’ );
}
}/*
* Activate native wordpress navigation menu and register a menu location
*/
if(!function_exists(‘avia_nav_menus’))
{
function avia_nav_menus()
{
global $avia_config, $wp_customize;add_theme_support(‘nav_menus’);
foreach($avia_config[‘nav_menus’] as $key => $value)
{
//wp-admin\customize.php does not support html code in the menu description – thus we need to strip it
$name = (!empty($value[‘plain’]) && !empty($wp_customize)) ? $value[‘plain’] : $value[‘html’];
register_nav_menu($key, THEMENAME.’ ‘.$name);
}
}$avia_config[‘nav_menus’] = array(
‘avia’ => array(‘html’ => __(‘Main Menu’, ‘avia_framework’)),
‘avia2’ => array(
‘html’ => __(‘Secondary Menu <br/><small>(Will be displayed if you selected a header layout that supports a submenu here)</small>’, ‘avia_framework’),
‘plain’=> __(‘Secondary Menu – will be displayed if you selected a header layout that supports a submenu’, ‘avia_framework’)),
‘avia3’ => array(
‘html’ => __(‘Footer Menu <br/><small>(no dropdowns)</small>’, ‘avia_framework’),
‘plain’=> __(‘Footer Menu (no dropdowns)’, ‘avia_framework’))
);avia_nav_menus(); //call the function immediatly to activate
}/*
* load some frontend functions in folder include:
*/require_once( ‘includes/admin/register-portfolio.php’ );
// register custom post types for portfolio entries
require_once( ‘includes/admin/register-widget-area.php’ );
// register sidebar widgets for the sidebar and footer
require_once( ‘includes/loop-comments.php’ );
// necessary to display the comments properly
require_once( ‘includes/helper-template-logic.php’ );
// holds the template logic so the theme knows which tempaltes to use
require_once( ‘includes/helper-social-media.php’ );
// holds some helper functions necessary for twitter and facebook buttons
require_once( ‘includes/helper-post-format.php’ );
// holds actions and filter necessary for post formats
require_once( ‘includes/helper-markup.php’ );
// holds the markup logic (schema.org and html5)if(current_theme_supports(‘avia_conditionals_for_mega_menu’))
{
require_once( ‘includes/helper-conditional-megamenu.php’ ); // holds the walker for the responsive mega menu
}require_once( ‘includes/helper-responsive-megamenu.php’ );
// holds the walker for the responsive mega menu//adds the plugin initalization scripts that add styles and functions
if(!current_theme_supports(‘deactivate_layerslider’)) require_once( ‘config-layerslider/config.php’ );//layerslider plugin
require_once( ‘config-bbpress/config.php’ );
//compatibility with bbpress forum plugin
require_once( ‘config-templatebuilder/config.php’ );
//templatebuilder plugin
require_once( ‘config-gravityforms/config.php’ );
//compatibility with gravityforms plugin
require_once( ‘config-woocommerce/config.php’ );
//compatibility with woocommerce plugin
require_once( ‘config-wordpress-seo/config.php’ );
//compatibility with Yoast WordPress SEO pluginif(!current_theme_supports(‘deactivate_tribe_events_calendar’))
{
require_once( ‘config-events-calendar/config.php’ );
//compatibility with the Events Calendar plugin
}if(is_admin())
{
require_once( ‘includes/admin/helper-compat-update.php’);
// include helper functions for new versions
}/*
* dynamic styles for front and backend
*/
if(!function_exists(‘avia_custom_styles’))
{
function avia_custom_styles()
{
require_once( ‘includes/admin/register-dynamic-styles.php’ );
// register the styles for dynamic frontend styling
avia_prepare_dynamic_styles();
}add_action(‘init’, ‘avia_custom_styles’, 20);
add_action(‘admin_init’, ‘avia_custom_styles’, 20);
}/*
* activate framework widgets
*/
if(!function_exists(‘avia_register_avia_widgets’))
{
function avia_register_avia_widgets()
{
register_widget( ‘avia_newsbox’ );
register_widget( ‘avia_portfoliobox’ );
register_widget( ‘avia_socialcount’ );
register_widget( ‘avia_combo_widget’ );
register_widget( ‘avia_partner_widget’ );
register_widget( ‘avia_google_maps’ );
register_widget( ‘avia_fb_likebox’ );
register_widget( ‘avia_instagram_widget’ );
}avia_register_avia_widgets(); //call the function immediatly to activate
}/*
* add post format options
*/
add_theme_support( ‘post-formats’, array(‘link’, ‘quote’, ‘gallery’,’video’,’image’,’audio’ ) );/*
* Remove the default shortcode function, we got new ones that are better ;)
*/
add_theme_support( ‘avia-disable-default-shortcodes’, true);/*
* compat mode for easier theme switching from one avia framework theme to another
*/
add_theme_support( ‘avia_post_meta_compat’);/*
* make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
*/
add_theme_support(‘force-post-thumbnails-in-widget’);/*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
/*
* add option to edit elements via css class
*/add_theme_support(‘avia_template_builder_custom_css’);
————————————————
I hope to hear from you guys soon!
Hi,
I just made a new install with WP and Enfold (Child Theme). Everything went perfectly. The only thing is if I want to add a ‘Button’ in the Avia Layout Builder I can’t fill in the following option: Button Link?
Check the picture:
. It does not shows the field to fill in a address. How is this possible?Hi there,
I am trying to create a light box for a mailchimp form as outlined in this post – https://kriesi.at/support/topic/lightbox-for-mailchimp-form/#post-582439 – I want to have a mailchimp form open in a lightbox when someone clicks a button. I have tried to implement this advice, but it is not working for me.
I got this error when I tried to add the suggested code to functions php:
Fatal error: Cannot redeclare add_custom_script() (previously declared in /home/tarynwilliams/public_html/wp-content/themes/enfold-child/functions.php:63) in /home/tarynwilliams/public_html/wp-content/themes/enfold-child/functions.php on line 82
Do you have any other ideas on how I can do this? I would like to have the buttons on this page opening with a form.
Thanks very much.
I’m using the “Quantities and Units for WooCommerce” plugin to enable decimal quantities and Kg as units in WooCommerce.
I disabled the Enfold +/- as suggested by Josue in his first answer here https://kriesi.at/support/topic/disable-woocommerce-quantity-feature/#post-732609 but this is not sufficient since:
– the quantity field is classified as a Text input field instead of a number input field (as you can see the std increase and decrease HTML buttons are not appearing also in the cart )
– the header cart show quantities with ‘.’ instead of ‘,’
https://drive.google.com/file/d/0B7baurTblFiQQWloLUVmeEJCN2M/view?usp=sharing
https://drive.google.com/file/d/0B7baurTblFiQX0x0X2pwRGF1V1U/view?usp=sharingSo i tried to change the /enfold/config-woocommerce/woocommerce-mod.js to this (only changed parseInt to parseFloat in lines 7,17,22) :
function avia_apply_quant_btn() { jQuery(".quantity input[type=number]").each(function() { var number = $(this), max = parseFloat( number.attr( 'max' ) ), min = parseFloat( number.attr( 'min' ) ), step = parseFloat( number.attr( 'step' ) ), newNum = jQuery(jQuery('<div />').append(number.clone(true)).html().replace('number','text')).insertAfter(number); number.remove(); setTimeout(function(){ if(newNum.next('.plus').length == 0) { var minus = jQuery('<input type="button" value="-" class="minus">').insertBefore(newNum), plus = jQuery('<input type="button" value="+" class="plus">').insertAfter(newNum); minus.on('click', function(){ var the_val = parseFloat( newNum.val() ) - step; the_val = the_val < 0 ? 0 : the_val; the_val = the_val < min ? min : the_val; newNum.val(the_val).trigger("change"); }); plus.on('click', function(){ var the_val = parseFloat( newNum.val() ) + step; the_val = the_val > max ? max : the_val; newNum.val(the_val).trigger("change"); }); } },10); }); }In this case, the ‘+’ and ‘-‘ buttons works well, increase and decrease are stepped by 0.5, and the HTML seems to be what i expected:
<form class="cart" method="post" enctype='multipart/form-data'> <div class="quantity"> <input type="number" step="0.5" min="0.5" max="" name="quantity" value="1" title="Qtà" class="input-text qty text" size="4" pattern="" inputmode="" /> </div> <input type="hidden" name="add-to-cart" value="21" /> <button type="submit" class="single_add_to_cart_button button alt">Acquista</button> </form>BUT … i get the browser verification error “Respect the required format” on field input (see this: https://drive.google.com/file/d/0B7baurTblFiQZHkyMURxNEVIM2M/view?usp=sharing ).
Can i have your suggestions to solve this empasse?
I need decimal quantities and increase/decrease buttons in input fields (standard html or – better – enfold theme).Topic: open video on video lightbox
hi. here i have a button. by clicking on this button a video should open in a lightbox. but at the moment the button referee to the youtube channel. how can i activate the lightbox for videos at my website?
i have seen this often with enfold. but it do not work at my site, please help me. thank you. http://imgur.com/a/bE2QS
Hi there!
Firstly, thank you for creating such a fantastic theme. Enfold is incredibly versatile and I love working with it.
I’ve encountered an issue with the Advanced Layout Builder which I’ve never experienced before, I’m hoping the Enfold team could help me resolve it. On a completely new website that I’m setting up the Layout Builder simply won’t work. When creating a new page and clicking on the Advanced Layout Builder button, nothing appears. I can’t switch between Visual and Text tabs either, and the Screen Options and Help dropdown menus don’t respond when I click on them.
When switching back to the standard themes that WordPress comes packaged with these issues disappear. It is only when I activate the Enfold theme and try use the Advanced Layout Builder that nothing works. I’ve gone through the help forum and tried to work out a solution from there, but with no success. I’ve deleted WordPress and created a fresh new copy, installed an older version of WordPress, installed an older version of Enfold, deleted all existing plugins, cleared the cache, tried the website in a different browser and even a different computer.
Could you please advise me on how to resolve the issue?
Many thanks,
AimeeTopic: ADVANCED LAYOUT EDIT tHIOR
RECENTLY DOWNLOADED ENFOLD FROM THEME FOREST BUT DO NOT HAVE THE ADVANCED LAYOUT EDITOR BUTTON ON MY WORDPRESS. HAS IT BEEN REMOVED? WHERE CAN I ACQUIRE THE PLUGIN? THE FEATURE WAS THE CONTINGENCY OF MY DOWNLOADING YOUR THEME. IF I CAN’T USE THAT FEATURE…I’M FEELING A BIT DECEIVED, BECAUSE THIS TOTALLY NEGATES THE “MULTI-PURPOSE” FUNCTION OF YOUR THEME THAT YOU ADVERTISED.


