Hello again. Ok so from the links you gave I THINK I have it figured out, but am running into a problem.
This is what I did:
I created a new directory in themes called enfold-child.
I made sure the directory chmod was the same as the parent.
I modified the css to the following & then uploaded it to the child directory:
/*
Theme Name: Enfold Child
Theme URI: http://kriesi.at/themedemo/?theme=enfold
Description: A superflexible and responsive Business Theme by Kriesi
Author: Kriesi
Author URI: http://www.facebook.com/pages/Kriesi/333648177216
Template: enfold-child
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: enfold-child
*/
/*
For older themes, and themes that do not use wp_enqueue_style() to enqueue their stylesheet, use the following line where twentyfourteen is the name of the directory where the theme resides:
Make sure you uncomment out this import line below if you want to include the parent CSS and the wp_enqueue_style() is not working. If you do not then you will not have any styling in your child theme from the parent theme.
*/
/*
@import url("../enfold/style.css");
*/
/* =Theme customization starts here
-------------------------------------------------------------- */
Then I went in & activated the child theme & it said it activated successfully.
The only thing I am not sure about is functions.php. I uploaded all of the same site files into the child theme directory that existed in the parent EXCEPT for functions.php as outlined in the link http://codex.wordpress.org/Child_Themes
So everything says it’s working in the admin but when I go to my site, monicawalston.com, I get the following error:
Fatal error: Call to undefined function avia_get_option() in /home/monicawa/public_html/wp-content/themes/enfold-child/header.php on line 5
What am I missing? I feel like there’s just one little thing? From what I read in the above link, I got the jist that I shouldn’t upload a functions.php, is that correct???
Please help?
Thank you!
Hey!
Try adding this at the very end of your theme functions.php file:
add_filter( 'wp_nav_menu_items', 'append_callus_func', 10, 2 );
function append_callus_func ( $items, $args ) {
if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu"))
{
$items .= '<li id="menu-item-callus"><p><span style=”color: #ff6600;”><span style=”color: #ff6600;”>CALL OUR STORE (859) 887-2552</span></span></p></li>';
}
return $items;
}
Cheers!
Josue
Hello,
I’m using custom layout for blog page (which is fontpage and blog page).
How can I edit the excerpt lenght?
I’ve tried adding the following code in theme functions.php without success.
add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($len) { return 75; }
Thank you best regards,
Guillermo.
This reply has been marked as private.
Hi!
I added code from favicon generator to header.php to display favicons based on different OS
Unpacked icons into root folder..
on website http://www.superpaintingco.com
For some reason Icons not displayed properly
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
Hey!
No, i did not delete any code. Functions.php file of your child theme was empty and i have just added the code to turn on Custom CSS field. Maybe you are talking about the codes you have in Functions.php file of your parent theme, which i have not touched? If that is the case, you can edit parent theme files here – http://i.imgur.com/j7BxEmx.png
Regards,
Yigit
Hi!
1- I have added the code to functions.php file of your child theme and now Custom CSS field appears on ALB elements – http://i.imgur.com/fSQYt5y.png
Screenshot is from your website. I have created a private page called “Test page”
2- You can save templates you have created using Avia Layout Builder and load them on other pages http://i.imgur.com/pkv1y7C.jpg
Regards,
Yigit
Dear Yigit
it is not yet right.
I changed in function.php to
$avia_config[‘imgSize’][‘widget’] = array(‘width’=>60, ‘height’=>60);
then I regenerate the thumbnails and I tried with various solutions in Quick CSS like:
###########
.news-thumb img, .news-thumb img { width: 60px; height: 60px; }
.news-thumb {
height: 60px;
width: 60px;
}
###########
or
############
.news-thumb { height: 60px; width: 60px; }
.news-thumb img, .news-thumb img { width: 60px; height: 60px; }
.attachment-shop_thumbnail img, .wp-post-image img { width: 60px; height: 60px; }
.attachment-widget img, .wp-post-image img { width: 60px; height: 60px; }
############
but not yet is correct
in the generated code there is an extra space in span class=’news-thumb ‘ I don’t know if this can be the problem
<span class=’news-thumb ‘>
</span>
Thank you Mauro
OK, after some additional fishing, problem solved. See posts:
https://kriesi.at/support/topic/layerslider-shortocode-disabled/#post-187266
https://kriesi.at/support/topic/layerslider-not-working-2/
I purchased the standalone layerslider and disabled the functions.php line… working as expected. Not thrilled with spending another $17… but I”ve lost that much problem solving.
However, the links above call for commenting out the layerslider line in functions.php of the parent theme. That means, everytime I update, I have to correct this problem. How can I “unhook” that line in my child theme’s functions.php file so I don’t have to watch this carefully?
Thanks in Advance…
Hi interage!
Thank you for using the theme.
You can edit includes > helper-social-media.php, find this code on line 147:
'twitter' => array("encode"=>true, "encode_urls"=>false, "pattern" => "http://twitter.com/home?status=[title]%20[shortlink]"),
Replace it with:
'twitter' => array("encode"=>true, "encode_urls"=>false, "pattern" => "http://twitter.com/home?status=[title]%20[shortlink]" , 'label' => __("Share on Twitter via @username",'avia_framework')),
Change the username on the label.
Cheers!
Ismael
hi, I bought an Enfold theme on 28th May (I’ve bought and used it 7 times now) and am having problems using this version of it now. I can’t open up the pages for editing… but when I change themes to a standard 2013 theme ithe pages open up and it all works perfectly.
I’ve deactivated and reactivated plugins but no luck.
the error message I’m getting is “Fatal error: Maximum execution time of 30 seconds exceeded in /home4/yogamany/public_html/test-site/wp-includes/functions.php on line 1425”.
I think I might need to reinstall the theme but don’t want to have to start from scratch customising it again. Any ideas of what I should do…. ?
the site is at http://www.yogamanyee.com/test-site/
many thanks,
Dear Support
I purchased your Enfold WP theme some time ago and have been trying to set up the new website today for the purpose of which I had bought the theme. However, as apparently already experienced by other users, I continue to receive an error message when I try to import the dummy data. Only some marginal comments and postings seem to be imported. Googling the problem, I noted several threads in your support forum related to this issue and already have tried to implement solutions offered therein, so far without any successes. Here is what happened:
1. Attempt no. 1:
Fresh installation of wordpress 3.9.1 and creation of new mysql databank
installation of the theme (version 2.7)
activation of theme
import of dummy data (failed)
after googling tried to enhance memory by changing config.php – no success
Wordpress installations and mysql database were deleted
2. Attempt no. 2:
Fresh installation of wordpress 3.9.1 and creation of new mysql databank
installation of the theme (version 2.7)
activation of theme
update of the theme (version 2.9)
import of dummy data (failed)
enhancing of memory by changing config.php – no success
Wordpress installations and mysql database were deleted
3. Attempt no. 3:
Fresh installation of wordpress 3.9.1 and creation of new mysql databank
installation of the theme (version 2.7)
use of different browser (now opera instead of firefox)
activation of theme
update of the theme (version 2.9)
import of dummy data (failed)
Wordpress installations and mysql database were deleted
* * *
In none of the cases any plugins had been activated. I am running out of ideas and need some advice from professional side. If nothing will help I see no other solution than approaching Themeforest for a refund…
Regards
Christoph
Hi kimchan2!
Please go to Appearance > Editor and open Functions.php file and find and edit following line
$avia_config['imgSize']['entry_with_sidebar'] = array('width'=>710, 'height'=>270); // big images for blog and page entries
then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
Yigit
This reply has been marked as private.
Hi Gabster!
You can find image sizes adjusted by Enfold in Functions.php file in Appearance > Editor
$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'=>710, 'height'=>575 ); // 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'=>710, 'height'=>270); // big images for blog and page entries
$avia_config['imgSize']['entry_without_sidebar']= array('width'=>1030, 'height'=>360 ); // images for fullsize pages and fullsize slider
//overwrite blog and fullwidth image on extra large layouts
if(avia_get_option('responsive_layout') == "responsive responsive_large")
{
$avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column)
$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
}
You can try using a plugin like this one – https://wordpress.org/plugins/wp-image-size-limit/
Cheers!
Yigit
This reply has been marked as private.
i found the solution without installing another plugin- and i’m writing it here in case anyone else has this problem:
go to plugins-jetpack-edit- look for jetpack/functions.opengraph.php
and add this code to the php file:
/**
* Adds default OpenGraph image.
* Christoph Nahr 2014-02-28
* @param array $tags Array of OpenGraph tags.
* @return Specified array, possibly modified.
*/
function add_default_image( $tags ) {
// replace blank Jetpack default image with site header
if ( $tags['og:image'][0] == "http://wordpress.com/i/blank.jpg" ) {
unset( $tags['og:image'][0] );
$tags['og:image'][0] = 'http://www.tipulkarov.com/wp-content/uploads/2014/01/logo200x200.jpg';
}
// always remove useless HTTPS image tags
unset( $tags['og:image:secure_url'] );
return $tags;
}
add_filter( 'jetpack_open_graph_tags', 'add_default_image' );
replace the photo (http://www.tipulkarov.com/wp-content/uploads/2014/01/logo200x200.jpg) to your own of course.
must be at least 200x200px
credit: this solution was taken from this link: http://news.kynosarges.org/2014/02/17/default-opengraph-image-for-jetpack/
-
This reply was modified 11 years, 8 months ago by
graphico.
Hi Lukas,
Open /php/class-form-generator.phpand look for line 417:
if(empty($_POST[$id])) $_POST[$id] = "false";
Replace it by this:
empty($_POST[$id]) ? $_POST[$id] = "Nein" : $_POST[$id] = "Ja";
Regards,
Josue
Hey gdwarren!
You must add the 100 font size to the google font stylesheet. Add this code to the very bottom of the enfold or child theme functions.php file:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
add_filter( 'avf_google_content_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Lato'] = 'Lato:100,300,400,700';
return $fonts;
}
Then go to Enfold > Theme Options and re-save the options. Afterwards Enfold should load the 100,300,400,700 font files from google.
Cheers!
Peter
Hey michel6769!
You can use the themes own custom sidebar functionality to create your own separate videos sidebar or use this plugin to select widgets to be displayed on only certain pages http://wordpress.org/plugins/display-widgets.
Your code won’t work however as its not valid code without a support sidebar php file.
Cheers!
Devin
Peter,
I resolved the problem myself, Woothemes wasn’t very hulpful.
This needs to be added to QuickCSS to hide the blue (duplicate) order buttons in related products:
.related ul.products a.add_to_cart_button { display:none; }
.related ul.products .avia_cart_buttons a.add_to_cart_button { display:block; }
And this is the modified wp-content/plugins/woocommerce/templates/loop/add-to-cart.php:
<?php
/**
* Loop Add to Cart
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $product;
// ## DENIS - 31/07/2014
$theurl = ($product->product_type == 'addons' ? $theurl = get_permalink( $product->id ) : $product->add_to_cart_url() );
echo apply_filters( 'woocommerce_loop_add_to_cart_link',
sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button %s product_type_%s">%s</a>',
// ## DENIS - 31/07/2014
//esc_url( $product->add_to_cart_url() ), ## ORIGINAL
esc_url( $theurl ),
esc_attr( $product->id ),
esc_attr( $product->get_sku() ),
$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',
esc_attr( $product->product_type ),
esc_html( $product->add_to_cart_text() )
),
$product );
As you can see the Woothemes Products Add-on doesn’t take into account the “addons” product type when constructing the add to cart/view product button.
That’s all, and produces the desired and correct result.
Denis.
Hey!
I’ve tested the exact same code and it worked as expected. Make sure you are using the latest verion of Enfold (2.9.1).
One more thing, if you plan to include the code on all pages maybe it would be more convenient to use the wp_footer hook:
function add_custom_script(){
?>
<script>
function setImage(){
if( jQuery( window ).width() < 570 ){
jQuery( "img[title^='SMS Marketing Banner']" ).attr( 'src' , '/wp-content/uploads/2014/08/ReEngagement-Mobile-ChildPage-Banner.png' );
}else if( jQuery( window ).width() > 1100 ) {
jQuery( "img[title^='SMS Marketing Banner']" ).attr( 'src' , '/wp-content/uploads/2014/08/ReEngagement-Large-ChildPage-Banner.jpg' );
} else {
jQuery( "img[title^='SMS Marketing Banner']" ).attr( 'src' , '/wp-content/uploads/2014/08/ReEngagement-Medium-ChildPage-Banner.jpg' );
}
};
jQuery( window ).resize(function(){
setImage();
});
setImage();
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
This reply has been marked as private.
Hey!
The problem is that the Theme Options are not responding/saving. Do you have access to your PHP error logs?
Also, could you please try re-installing the theme via FTP to discard if theres some missing code that didn’t get uploaded?
Cheers!
Josue
Hi!
I don’t think so, but if you use a child theme you can use a modified version of the /includes/loop-index.php file.
Best regards,
Josue
Hi!
If you use a child theme you can modify and copy both author.php and /includes/loop-about-author.php to your child folder.
Cheers!
Josue
Hier der Vollständigkeit halber noch die Fehlermeldung:
Warning: end() expects parameter 1 to be array, string given in /www/htdocs/w00f1727/web_eigen/com.flymotions/wp-content/themes/enfold/template-builder.php on line 33
Hey!
– To change the grid width
1. Go to this website and paste the contents of the css/grid.less file.
2. Change the values of the @maxWidth variables to the desired widths (add 100px, if you want a 900px width you should put “@maxWidthLarge:1000px”) and compile (ctrl / cmd + enter).
3. Replace the contents of css/grid.css with the generated code on the right.
– To use a grid.css file on a child theme
1. Put the modified grid.css anywhere inside your child theme folder, i’d suggest using a css folder to keep the same structure.
2. Add this code to the child theme functions.php:
function wp_change_gridcss() {
if(!is_admin()){
wp_dequeue_style( 'avia-grid' );
wp_enqueue_style( 'avia-grid-child', get_stylesheet_directory_uri().'/css/grid.css', array(), '2', 'all' );
}
}
add_action( 'wp_enqueue_scripts', 'wp_change_gridcss', 100 );
P. S. In case you don’t want to do the compiling work, here’s a 900px wide grid.css file:
https://gist.github.com/josueochoa/a543b109eb27709c1c8e
Best regards,
Josue
Hi,
Open /framework/php/class-framework-widgets.php and look for line 732:
$before = apply_filters('avf_social_widget', "", 'twitter');
Replace it by this:
$before = apply_filters('avf_social_widget', "", 'facebook');
Regards,
Josue