Hi potentialindia!
Thank you for using Enfold.
Did you create an addthis account? Add the share button codes manually. Use this on the functions.php file:
add_filter('avf_template_builder_content', 'avf_template_builder_content_mod');
function avf_template_builder_content_mod($content = "") {
if(is_singular('portfolio')) {
$share = '<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51de2d2b7e09a8f5"></script>
<!-- AddThis Button END -->';
$content = $content . $share;
}
return $content;
}
Get your own button codes inside the addthis account: https://www.addthis.com/get/sharing
Regards,
Ismael
Hi!
I don’t know why this started but AviaPointer class is giving notices on ajax calls and media functionality breaks on wp-admin/upload.php. Ajax loader icon just keeps rolling and media thumbnails won’t appear.
PHP Notice: Trying to get property of non-object in …/wordpress/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/pointer.class.php on line 52, referer: …/wp-admin/post.php/wp-admin/upload.php
This notice is also firing on other pages but doesn’t seem to cause any problems.
The problem is that AviaPointer calls get_current_screen() function which returns null.
$screen = get_current_screen();
$this->screen_id = $screen->id;
The second line gives the error because $screen is null on ajax calls.
It seems that this code is executed on every ajax call. Is this really necessary? Pointers should be a one time thing, right?
A relevant stack trace:
pointer.class.php:51, AviaPointer->__construct()
template-builder.class.php:296, AviaBuilder->call_classes()
template-builder.class.php:97, AviaBuilder->admin_init()
template-builder.class.php:84, AviaBuilder->Init()
I could fix the issue by adding the following check:
$screen = get_current_screen();
if(isset($screen)) {
$this->screen_id = $screen->id;
}
I’m not sure if this is the best way to do it. I don’t see the point in running the pointer code on ajax calls.
Could you fix this?
-
This topic was modified 11 years, 2 months ago by
jiv_e. Reason: Fix code formatting
This reply has been marked as private.
Hey!
What happens when you activated the default theme? Do the errors happen there as well? If so then it would be best to reload a backup. Perhaps the latest WordPress update was not completed successfully.
I found these topics which may help.
https://wordpress.org/support/topic/wp-blog-headerphp-failed-to-open-stream
https://wordpress.org/support/topic/warning-mainwp-blog-headerphp-error
https://wordpress.org/support/topic/missing-file-or-directory-on-line-17-of-indexphp
Regards,
Elliott
Hi LoremIpsum!
None that I know of. We do not utilize any “x-mailer” code in Enfold. If that is a plugin then I would contact the plugin authors about this.
You can see how we send mail around line 710 in /enfold/framework/php/class-form-generator.php.
Cheers!
Elliott
-
This reply was modified 11 years, 2 months ago by
Elliott.
The folders have the permisions 755
inside files like admin-ajax.php has 644
I understand that is ok, a I right? anyway i changed to 755 and still getting the same
Hey sambo258!
1- Answered you here – https://kriesi.at/support/topic/site-not-right-on-ipad/#post-402719
Please do not create duplicated topics.
2- You can install this plugin, https://wordpress.org/plugins/wp-smtp/, and send a test PHP email to see if it arrives. If your hosting provider has an SMTP server then you can have the plugin switch WordPress to use SMTP mail instead of PHP mail.
Best regards,
Yigit
Hi!
1.) You can add html codes inside the Phone Number or small info text field. You can find it on Enfold > Header > Extra Elements panel.
2.) Add this to the functions.php:
add_filter( 'wp_nav_menu_items', 'avf_add_search', 3, 2 );
function avf_add_search( $items, $args ) {
if ($args->theme_location == 'avia')
{
$search = '<li id="menu-item-search-mobile" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-18 current_page_item menu-item-top-level menu-item-top-level-5">'.get_search_form(false).'</li>';
$items = $search . $items;
}
return $items;
}
Go to Enfold > General Styling > Quick CSS field. Add this:
@media only screen and (max-width: 767px) {
#top #searchform>div {
display: block !important;
opacity: 1 !important;
}
}
This will render the search box inside the mobile navigation.
Cheers!
Ismael
Hi Guys,
On a previous topic you supplied me with some code to go into “functions.php” so I can use the Raleway font with all the strengths.
===================
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Raleway’] = ‘Raleway:100,200,300,400,500,600,700,800,900’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Raleway’] = ‘Raleway:100,200,300,400,500,600,700,800,900’;
return $fonts;
}
======================
Since I had it working you have updated the Theme twice, I have then re uploaded the code to the php file and encountered the problems:
1) Font didn’t show correct for 2 days then worked all of a sudden !
2) Font wont show now at all
I feel I am doing something wrong. My process is: Appearance > Editor > Clcik on Theme Functions on right hand side and then paste the code into the area you previously indicated. > Press update file.
Can you please look into this for me and let me know where I am going wrong – thanks guys Brett
This reply has been marked as private.
This reply has been marked as private.
Hi Austin!
You can find most of the Enfold image sizes on lines 117 – 128 in the functions.php file.
$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
And the Woocommerce image sizes can be changed in Dashboard > WooCommerce > Settings > Products > Display.
Regards,
Elliott
Hey absurdity69!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.slide-meta {
display: none!important;
}
To change image sizes, please go to Appearance > Editor and open Functions.php file and find
$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
and change the sizes as needed and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Regards,
Yigit
Hello there, I am regenerating my thumbnails for my ecommerce site. I have changed 3 thumbnail dimensions in woocommerce. However when regenerating my thumbnails I am regenerating all of these dimensions.
Regenerate: 1000×1000, 1000×423, 1000×430, 1000×630, 100×100, 180×180, 194×194, 260×185, 300×300, 36×36, 495×400, 705×705, 710×375, 80×80, 845×321, 845×684
Is there a file in enfold that has these defined? I have checked functions.php ect. I am also using child theme. I would like to redefine these.
Also, are these set by default in enfold theme? I understand it is responsive. Is this why there are so many dimensions set? thanks
Hi!
I’m not sure if this is going to work but you can try this on functions.php:
add_action('ava_after_main_container','ava_after_main_container_mod');
function ava_after_main_container_mod() {
echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>';
echo '<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js" type="text/javascript"></script>';
}
Best regards,
Ismael
Hey!
Good morning. We would like to help but you’re not following our suggestions. We asked you to do this:
2.)The account links are automatically created on the Replete theme but it’s not the same on Enfold. You need to create the Enfold Secondary Menu manually on Appearance > Menus panel.
3.) Try to set the permalinks on Settings > Permalink panel to Post name. My Account Endpoints endpoints should work like this (assuming you set “Account” page as My Account Page. http://franzelina.com/account/edit-account
Anyway, we create a secondary menu. All you need to do is add the menus that you want here: http://franzelina.com/wp-admin/nav-menus.php?menu=3793
I tried to set the permalink to postname but the website fails to load or a redirect loop occurs when I do this. It must be a plugin conflict. Please deactivate all plugins then test it again. Follow the instruction provided here: https://wordpress.org/support/topic/order-received-endpoint-404-error-1
Regards,
Ismael
Hey!
I’m sorry, I copied the whole avia_post_nav function to the child theme’s functions.php and it somehow broke the site because there is an excess bracket. Please override the functions.php on your child theme folder. Add this code:
http://pastebin.com/tNSKxzJ7
Again, I’m very sorry for the inconvenience.
Regards,
Ismael
On my site at http://www.thejetcoaster.com the sticky colored banner, fullscreen slider, animated countdown, masonry blog, parallax color section, testimonials, gallery – strangely, all these don’t display on my work computer (windows 7 PC running latest chrome), but they display properly on other computers like my macbook.
Furthermore, my other site – http://www.drifthunter.net displays fine. The site of my friend (also running Enfold) at http://www.great-sensei.com also displays as well. On all computers that I’ve tested.
I’ve tried to isolate the problem by deactivating various plugins and removing the custom CSS, but the problem persists.
I speculate that the issue might be due to PHP limits or because I’m running a child theme, but my friend is not having the same issue and he has a similar amount of content on his page and is running a child theme so I don’t know whats going on.
Any ideas? Help would be greatly appreciated
-
This topic was modified 11 years, 2 months ago by
Apollo87.
Hello I am moving my localhost WordPress file into my live server but I am receiving this error.
Warning: Cannot modify header information – headers already sent by (output started at /home/harvestpower/test.harvestpower.com/wp/wp-content/themes/enfold/functions.php:513) in /home/harvestpower/test.harvestpower.com/wp/wp-includes/pluggable.php on line 1178
I cannot access the front end view or the wp-admin section either. Please help me with any advice.
Thanks
Hello,
I am receiving 2 error messages at the top of my site:
Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /home/przw295703/domains/urbanstylz.nl/public_html/wp-content/themes/enfold/functions-enfold.php:1) in /home/przw295703/domains/urbanstylz.nl/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/przw295703/domains/urbanstylz.nl/public_html/wp-content/themes/enfold/functions-enfold.php:1) in /home/przw295703/domains/urbanstylz.nl/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32
I have tried to add the Custom CSS field for media elements to the Functions.php, but by mistake placed it in functions-enfold.php. After removal of the extra lines, I got the error messages.
Can you please help!?
David
Sevindim sorunu cozdugunuze :) Adwords kodunu assagidaki gibi duzenleyip ekler misiniz
function add_custom_script(){
?>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 954000267;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
</div>
</noscript>
<?php
}
add_action('wp_footer', 'add_custom_script');
Ekstra bosluk sorununu cozucektir :)
Cheers!
Yigit
Merhabalar Yiğit Bey.
Tırnak işaretinden sayfa hata vermiş. Ftp üzerinden değişikliği yaptım şuan düzeldi.
Adwords kodunu eklediğimde düz size bahsettiğim header alanında box görüntülenme problemi yine devam ediyor Yiğit Bey.
Google adwords ve meta tagları header.php dosyasına title bölümünden sonra direk eklesek problem oluşturur mu? Aşağıda örneğini paylaşıyorum.
<title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title>
<meta name="google-site-verification" content="kXC9skF0htlOAqEM7iPjiSBGd_FiE3Sd7nsjpobNbvk" />
<meta http-equiv="expires" content="3600" />
<meta name="robots" content="index,follow" />
<meta name="robots" content="all" />
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 954000267;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/954000267/?value=0&guid=ON&script=0" />
</div>
</noscript>
-
This reply was modified 11 years, 2 months ago by
gencliksaati.
Hey Pooz!
Would you like to make frontend English? If so, please set language to English in wp-config.php file and then use the code to translate WP backend
add_filter('locale', 'wpse27056_setLocale');
function wpse27056_setLocale($locale) {
if ( is_admin() ) {
return 'da_DK';
}
return $locale;
}
Best regards,
Yigit
This reply has been marked as private.
This reply has been marked as private.
Hello and now the details:
In this page: http://www.sqli-enterprise.com/solutions/customer-relationship-management/ I use two trigger to open the Magnific Popup:
1- A image with a link
2- A simple link

First, the most important thing to remember is that both of them are using the CSS class: ‘inline_popup‘
– The simple link trigger is: <a class="inline_popup" href="#content-to-open">workshop gratuit</a>
– The image link trigger is:

It’s important because this CSS class is declared in the JS code of my function.php : $('.inline_popup').magnificPopup({
The HREF of those two links is : #content-to-open and it is the target (a color section) that wrap my Gravity form in a Enfold Block Code.
So in your page, add a Color Section and within it, add a block code:

Edit this Color Section and:
– give the ID field this value: content-to-open
– give the CSS class field this value: mfp-hide (mfp-hide is CSS class that come from the core of Magnific Popup, the role of it, is to hide each elements found on a page that have this class > your form should not be visible when the page load, but only within the Magnific Popup):

At the end, edit the Enfold Block Code, and put your own Form shortcode:

That’s all… :)
—
The code I used in my function.php come from the autor of Magnific Popup but I give you some informations :
focus: ‘#input_12_13’ > should be the Input Name of you first Input field of your form, this tips give the focus to it.
The autor said: ‘When elemened is focused, some mobile browsers in some cases zoom in. It looks not nice, so we disable it‘ More information can be found here http://dimsemenov.com/plugins/magnific-popup/ (look for the ‘Popup with form” example source code.
Hi!
Add the whole avia_post_nav function on the child theme’s functions.php:
function avia_post_nav($same_category = false, $taxonomy = 'category')
{
global $wp_version;
$settings = array();
$settings['same_category'] = $same_category;
$settings['excluded_terms'] = '';
$settings['wpversion'] = $wp_version;
//dont display if a fullscreen slider is available since they overlap
if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) ||
class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = false;
$settings['type'] = get_post_type();
$settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy;
if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true;
if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true;
$settings = apply_filters('avia_post_nav_settings', $settings);
if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return;
if(version_compare($settings['wpversion'], '3.8', '>=' ))
{
$entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
$entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
}
else
{
$entries['prev'] = get_previous_post($settings['same_category']);
$entries['next'] = get_next_post($settings['same_category']);
}
$entries = apply_filters('avia_post_nav_entries', $entries, $settings);
$output = "";
foreach ($entries as $key => $entry)
{
if(empty($entry)) continue;
$the_title = isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," ");
$link = isset($entry->av_custom_link) ? $entry->av_custom_link : get_permalink($entry->ID);
$image = isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail');
$tc1 = $tc2 = "";
$class = $image ? "with-image" : "without-image";
$output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
$output .= " <span class='label iconfont' ".av_icon_string($key)."></span>";
$output .= " <span class='entry-info-wrap'>";
$output .= " <span class='entry-info'>";
$tc1 = " <span class='entry-title'>{$the_title}</span>";
if($image) $tc2 = " <span class='entry-image'>{$image}</span>";
$output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1;
$output .= " </span>";
$output .= " </span>";
$output .= "</a>";
}
return $output;
}
Regards,
Ismael
This reply has been marked as private.
This reply has been marked as private.