I updated my theme today and I have custom sizes for ‘entry_with_sidebar’ and ‘entry_without_sidebar’.
I made the changes to the functions.php file:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>563); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1030, ‘height’=>687 ); // images for fullsize pages and fullsize slider
The ‘entry_without_sidebar’ is showing correctly, but the ‘entry_with_sidebar’ is still coming out at 321px high:
http://www.mitchster.com/minneapolis-daily-photo-blog/
I’ve been trying different things all day and am at my wits’ end! Please help!
Hey Gal763!
Replace the code on functions.php:
add_filter( 'avf_masonry_excerpt_length', 'avf_masonry_excerpt_length_mod');
function avf_masonry_excerpt_length_mod() {
$excerpt = 50;
return $excerpt;
}
function avia_backend_truncate($string, $limit, $break=".", $pad="...", $stripClean = false, $excludetags = '<strong><em><span>', $safe_truncate = false)
{
if($stripClean)
{
$string = strip_shortcodes(strip_tags($string, $excludetags));
}
if(strlen($string) <= $limit) return $string;
if(false !== ($breakpoint = strpos($string, $break, $limit)))
{
if($breakpoint < strlen($string) - 1)
{
if($safe_truncate || is_rtl())
{
$string = explode(" ",$string);
$string = implode(" ",array_splice($string,0,$limit));
}
else
{
$string = explode(" ",$string);
$string = implode(" ",array_splice($string,0,$limit));
}
}
}
// if there is no breakpoint an no tags we could accidentaly split split inside a word
if(!$breakpoint && strlen(strip_tags($string)) == strlen($string))
{
if($safe_truncate || is_rtl())
{
$string = explode(" ",$string);
$string = implode(" ",array_splice($string,0,$limit));
}
else
{
$string = explode(" ",$string);
$string = implode(" ",array_splice($string,0,$limit));
}
}
return $string;
}
Remove the date with this on Quick CSS:
span.av-masonry-date.updated {
display: none !important;
}
Best regards,
Ismael
Hola,
Si, es posible implementarlo pero como te decía requiere un poco de trabajo, lo que habría que editar seria /enfold/config-templatebuilder/avia-shortcodes/portfolio.php, alrededor de las lineas 723-725:
$output .= "<div class='entry-content-wrapper entry-content' ".avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$id, 'custom_markup'=>$this->atts['custom_markup'])).">";
$output .= $content;
$output .= "AQUI IRIAN LOS SHARE LINKS, FIJATE QUE TIENES ACCESO AL ID DEL POST ($id)";
$output .= "</div>";
Inicialmente intente poner la función nativa de share links de Enfold (avia_social_share_links) allí pero no funciono debido a que esta aun no soporta pasarle un $id especifico como parámetro, ósea se compartía el contenido de la pagina donde esta el portfolio y no del single portfolio abierto en ese momento.
Dicho esto, lo que te recomendaría es investigar por una opción de terceros (un plugin de share links), uno que te permita invocarlo via función PHP (o shortcode), pero sobre todo que te permita pasarle el $id del post a compartir.
Saludos
Josue
Hi there !
I bought your ENFOLD theme a few weeks and everything worked fine, bud as I was trying to update to 3.0.8 this problem has occured.
Downloading update from https://s3.amazonaws.com/marketplace-downloads.envato.com/files/120475727/enfold1.zip?AWSAccessKeyId=AKIAJYG5ROGJ6X7Z3M6Q&Expires=1423343145&Signature=TAbRR1H10wDs7jOtOpNHj85%2F1i4%3D&response-content-disposition=attachment%3B+filename%3Dthemeforest-4519990-enfold-responsive-multipurpose-theme-wordpress_theme.zip…
Unpacking the update…
Installing the latest version…
Removing the old version of the theme…
Theme update failed.
An error occurred while updating Enfold: Could not remove the old theme.
Warning: require_once(class-envato-protected-api.php): failed to open stream: No such file or directory in /nfsmnt/hosting1_2/e/2/e206704d-2632-4104-8add-ebf14151c43c/alarix.sk/web/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 32
Fatal error: require_once(): Failed opening required ‘class-envato-protected-api.php’ (include_path=’.:/usr/php55/lib/php’) in /nfsmnt/hosting1_2/e/2/e206704d-2632-4104-8add-ebf14151c43c/alarix.sk/web/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 32
Can you please help me guys ? Thanks a lot.
-
This topic was modified 11 years, 2 months ago by
peterfric.
Hey Jennifer!
It doesn’t because of the Twitter character limit, if you want to change it you’d need to edit /includes/helper-social-media.php and change line 147:
'twitter' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[shortlink]"),
To:
'twitter' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://twitter.com/share?text=[title]&url=[permalink]"),
To have this mod on a child theme you can copy the whole avia_social_share_links class to your child functions.php.
Regards,
Josue
Hi Ismael,
thanks so much for looking into this. It actually still breaks the site and gives the following error: Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /nfs/c09/h04/mnt/188733/domains/aquaquestonline.com/html/wp-content/themes/enfold/functions.php on line 1088
I have a feeling there’s maybe one sign missed but I don’t have enough php knowledge to fix it..
Thank you,
Gear Out Here
Hi!
Open up the archive.php file and change lines 32 – 71 to this.
<?php echo do_shortcode("[av_blog blog_type='posts' categories='".get_query_var('cat')."' link='category' blog_style='single-big' columns='3' contents='excerpt' content_length='excerpt_read_more' preview_mode='custom' image_size='medium' items='6' offset='0' paginate='yes' custom_class='']"); ?>
Cheers!
Elliott
Hey Yory!
What happens then you change lines 166 – 167 in /enfold/config-templatebuilder/avia-shortcodes/gallery.php from this.
'lightbox_size' => 'large',
'preview_size' => 'portfolio',
To this?
'lightbox_size' => 'full',
'preview_size' => 'full',
Cheers!
Elliott
-
This reply was modified 11 years, 2 months ago by
Elliott.
Hey!
I’m sorry but I think you’re confused. If you have 2 wp installation, you should put the code separately in these two directories:
patient > wp-content > themes > enfold or enfold-child > functions.php
and
dentist > wp-content > themes > enfold or enfold-child > functions.php
Please review the code we provided here: https://kriesi.at/support/topic/linking-two-sites/#post-389171
Regards,
Ismael
Hi!
1. I’m sorry but I forgot which shortcode does this. Can you send us a link to your page or let us know which shortcode your using?
2. Try changing line 1047 in /enfold/framework/php/function-set-avia-frontend.php.
$excerpt = preg_replace("!\s\[...\]$!", '...', $excerpt);
Cheers!
Elliott
Hey vocalman77!
Open up /enfold/framework/php/class-form-generator.php and on line 366 you should see this.
echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
Add this beneath it.
beforeShowDay: jQuery.datepicker.noWeekends,
Best regards,
Elliott
Hey!
Which of these pages are you working on? I created a test page (http://webdev.ease.com/wp-admin/post.php?post=2720&action=edit&message=1) then added a few team member elements, updated the page a few times and everything is still intact. No contents are being removed. Did you add any html codes on the page? Make sure that you close the tags properly.
Cheers!
Ismael
Hey!
Please go to Enfold/config-templatebuilder/avia-shortcodes folder and open masonry_entries.php file and find it on the line 670 and change as needed
Cheers!
Yigit
This reply has been marked as private.
Hi!
Add this to the bottom of your functions.php file.
add_action( 'ava_after_main_menu', 'enfold_customization_second_logo' );
function enfold_customization_second_logo() {
echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', '<img class = "mobile_logo" src = "URL to your image" alt = "" />', 'strong', true);
}
And replace the “URL to your image” with the correct URL. And then add this to your custom CSS.
.mobile_logo { display: none; }
@media only screen and (max-width: 767px) {
.logo { display: none; }
.mobile_logo, .mobile_logo .logo { display: block !important; }
}
Regards,
Elliott
-
This reply was modified 11 years, 2 months ago by
Elliott.
using this code.
/* functions.php */
add_filter('avf_google_heading_font','add_fonts');
add_filter('avf_google_content_font','add_fonts');
function add_fonts($fonts) {
/*$fonts['nanum gothic'] = 'nanum gothic:400,700,800';*/
$fonts['nanum gothic'] = 'nanum gothic';
return $fonts;
}

(this screenshot is example to another font(malgun gothic). and, same error )

(this error is in enfold general styling)
this is google’s description.
Link
@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);
font-family: ‘Nanum Gothic’;
Hey!
Actually, the largest image that you will see on the masonry section is 705x705px, this is the specified thumbnail size for the masonry element, but the theme will determine the orientation of the images base on the original size uploaded. So it all comes down to image format and optimization. You can edit config-templatebuilder > avia-shortcodes > masonry_entries.php file if you want to specify the image dimension. It will take a major code rewrite though so you may need to hire a freelance developer.
Best regards,
Ismael
could I put something like this and add it to inner-container so it would show where I want it?
<?php echo do_shortcode( ‘[contact-form-7 id=”47″ title=”Contact form 1″]’ ); ?>
If so, how could I style it and get it into position?
thank you
gary
Hi!
You can disable the translation for the Theme Options by opening functions.php and moving line 104 to line 78 – http://screencast.com/t/NaHYTtsyM
Cheers!
Josue
Hi!
Yeah that’s because the German translation is not 100% complete, you can disable it (for the Theme Options only) if you want, open functions.php and move line 104 to line 78 – http://screencast.com/t/NaHYTtsyM
Best regards,
Josue
Hi Josue,
The website is now down because of a fatal error:
Fatal error: Cannot redeclare change_cf_from() (previously declared in /home/c100099/domains/bandplus.nl/public_html/wordpress/wp-content/themes/enfold/functions.php:516) in /home/c100099/domains/bandplus.nl/public_html/wordpress/wp-content/themes/enfold/functions-enfold.php on line 1276
This is a customer site and I cant leave it like this. Could you please support me on how to solve it?
Many thanks!
Special K

Immediately following update to Enfold 3.0.8 when entering checkout page with items in cart the checkout summary and payment methods have disappeared. See attached screen shots. I have worked about 16 hours to get this resolved to no avail. Disabled all plugins except wc, re-installed wc, and every possible scenario including recreating the WC pages, disabling/flushing caches etc.
### Environment ###
Home URL: http://www.werenuts.com
Site URL: https://www.werenuts.com
WC Version: 2.2.11
WC Database Version: 2.2.11
WP Version: 4.1
WP Multisite Enabled: No
Web Server Info: Apache
PHP Version: 5.3.10-1ubuntu3.15
MySQL Version: 5.5.40
WP Active Plugins: 21
WP Memory Limit: 96 MB
WP Debug Mode: No
WP Language: en_US
WP Max Upload Size: 8 MB
PHP Post Max Size: 8 MB
PHP Time Limit: 3600
PHP Max Input Vars: 1000
SUHOSIN Installed: No
Default Timezone: Default timezone is UTC
fsockopen/cURL: Your server has fsockopen and cURL enabled.
SOAP Client: Your server has the SOAP Client class enabled.
WP Remote Post: wp_remote_post() was successful - PayPal IPN is working.
### Locale ###
decimal_point: .
thousands_sep: N/A
mon_decimal_point: N/A
mon_thousands_sep: N/A
### Plugins ###
Installed Plugins: bbPress by The bbPress Community version 2.5.4
Custom Post Type UI by WebDevStudios.com version 0.9.5
Gravity Forms by rocketgenius version 1.8.22
WordPress Newsletter subscription Opt-in for SendBlaster by Max version 1.1.6
Regenerate Thumbnails by Viper007Bond version 2.2.4
Registration Form Widget by Stefano Garuti version 1.0
Sidebar Login by Mike Jolley version 2.7.1
Smart Manager for e-Commerce by Store Apps version 3.9.2
SOD WooCommerce UPS Rates by 61 Designs version 1.1.1
Widget Importer & Exporter by Steven Gliebe version 1.1.4
Checkout Field Manager for WooCommerce by 61 Extensions version 1.0.15
WooCommerce Authorize.net AIM Gateway by SkyVerge version 3.2.5
WooCommerce Print Invoice/Packing list by Ilari Mäkelä version 2.2.7 – 2.4.4 is available
WooCommerce by WooThemes version 2.2.11
WooThemes Helper by WooThemes version 1.4.1
WordPress Custom Post Type Archive by Yoav Aner (based on WordPress Category Archive by Hugh Mandeville) version 1.0
WordPress HTTPS by Mike Ems version 3.3.6
WordPress Importer by wordpressdotorg version 0.6.1
WP-PageNavi by Lester 'GaMerZ' Chan version 2.87
WP Realtime Sitemap by Daniel Tweedy version 1.5.4
wpMandrill by Mandrill version 1.33
### Settings ###
Force SSL: Yes
### WC Pages ###
Shop Base: #4 - /shop/
Cart: #5 - https://www.werenuts.com/cart/
Checkout: #10018 - https://www.werenuts.com/checkout/
My Account: #8 - /my-account/
### WC Taxonomies ###
Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)
### Theme ###
Theme Name: Enfold
Theme Version: 3.0.8
Theme Author URL: http://kriesi.at
Is Child Theme: No
WooCommerce Support: Yes
### Templates ###
Template Overrides: No overrides present in theme.
Will provide wp admin access if needed. Please help. Guest checkout is enabled so to view issue just visit site, add item to cart, proceed to checkout to view issue. https://www.werenuts.com/checkout/
-
This topic was modified 11 years, 2 months ago by
GaWebDev.
This reply has been marked as private.
Hi!
Please review your website now. I removed following from functions.php file of your theme – http://pastebin.com/ZpR2wN7s
Please also consider installing a security plugin
Cheers!
Yigit
Hi!
Try adding this part,
<script id="eztixKioskLinkId" class="1.10.1" type="text/javascript">
(function(){
var ezLoad = document.createElement('script'); ezLoad.type = 'text/javascript';
ezLoad.src = 'https://kiosk.eztix.co/js/ver'+parseInt(Math.random()*2147483647)+'/kioskIntegrated/kioskIntegratedExtLoader.js';
var s = document.getElementById('eztixKioskLinkId'); s.parentNode.insertBefore(ezLoad, s.nextSibling);
})();
</script>
Right above line 184 in the footer.php file.
</body>
Regards,
Elliott
Hi kevinbrocard!
Comment out line 271 in /enfold/functions-enfold.php.
//if($header_settings['header_title_bar'] == 'hidden_title_bar') return "";
Cheers!
Elliott
Hey axelfx07!
Please add following code to Functions.php file
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.newsbox a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
Best regards,
Yigit
When i view the top headline and the centered textblock on Mobile, it cuts of one piece and it just stops resizing at one point. Can anyone help me with that
i already tried to add this this (no results):
function.php:
add_theme_support(‘avia_template_builder_custom_css’);
stylsheet.css:
@media only screen and (max-width: 479px) { .start-titel { background: none !important; } }
@media only screen and (max-width: 479px) { .start-text { background: none !important; } }
Hi!
Sorry, the code was meant to be added to Quick CSS (not functions.php), you’d need to revert it via FTP, i can do it for you if you provide me a temporary account.
If it doesn’t work try with this code in Quick CSS:
@media only screen and (max-width: 767px){
.responsive.html_header_sidebar #top {
position: relative;
}
}
Cheers!
Josue
This reply has been marked as private.