We are seeing code in the “title” tag of the icon link. I think someone else reported this already Icon Box Title link but I don’t think the answer was correct. It is not a plug-in conflict, it is an issue in the code.
iconbox.php lines 165-169 look like this:
case 'both':
$title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>";
$display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($title)."' {$blank}";
$display_char_wrapper['end'] = 'a';
break;
As you can see the $title variable in 166 gets assigned the string and then you use that same variable in the “title” tag again in line 167. You are expecting to grab the value passed to the function but you are actually getting the reassigned value of $title. And that is what we are seeing.
I simple modified the code to look like this:
case 'both':
$mytitlecopy = $title;
$title = "<a href='$link' title='".esc_attr($title)."' $blank>$title</a>";
$display_char_wrapper['start'] = "a href='{$link}' title='".esc_attr($mytitlecopy)."' {$blank}";
$display_char_wrapper['end'] = 'a';
break;
I’m not sure that’s the best way to fix it but it worked for me. BTW, great work on the template it.
Hey!
I just tested this one out the other day as I was writing it up for the documentation. This is exactly what I have on my live site right now and its working:
<?php
global $avia_config;
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
$fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['PT Sans'] = 'PT Sans:400,700,400italic,700italic';
$fonts['PT Sans Narrow'] = 'PT Sans Narrow:400,700';
return $fonts;
}
The new fonts will show up at the bottom of the list. If you are getting a blank screen it means the code hasn’t been added in correctly. Even a single missing } will cause WordPress to be unable to read the file so make sure that you are editing the file in a clean text editor that doesn’t add any other markup (like notepad) and that its exactly the same as above.
Best regards,
Devin
Hey!
We have version 2.4.5 now. Please download the theme again on your themeforest account the update it via FTP. Watch this video by Devin: https://vimeo.com/channels/aviathemes/64927356
Edit functions.php again, find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
//set builder mode to debug
add_action('avia_builder_mode', "builder_set_debug");
function builder_set_debug()
{
return "debug";
}
Updating the theme will remove the modifications that you made unless you’re using a child theme.
Regards,
Ismael
Hi Devin,
I tried in my VM and I tried using a real computer with Windows XP and clearing the cache (and cookies, etc.) doesn’t solve the problem.
And, sorry for my last post, display problems described in my #201490 post are still here :
– Sometimes when 3 columns are used, the third one is in the next row (for example http://www-test.mines-telecom.fr/en/institut-mines-telecom-2/presentation-2/statut-et-decret/)
– And the biggest problem is the mega menu (Screenshot here : https://partage.mines-telecom.fr/public.php?service=files&t=592cdb7efc3171d0534fc7935621299c)
Could you try testing with VM or a computer with Windows XP (dual boot for example) ?
There’s almost 20 % of people still using Windows XP around the world and yesterday Microsoft extended security patches for it till 2015, July 15th…
Thanks a lot.
Hey pako69!
Please download the theme again on your themeforest account then update your installation via FTP. Watch this video by Devin: http://vimeo.com/channels/aviathemes/67209750
Cheers!
Ismael
Hey!
I did some tests and noted that the issue only occurs on that page, it’s because that Text block has an iframe code that may be creating the conflict.
I’d recommend you re-doing that part and putting the iframe code in a separate Text block, that way you can edit the text.
Regards,
Josue
This reply has been marked as private.
The ajax popup cart icon is missing anchor text, so I added it via a hidden div and a -9999px alignment. I dont know if this is something you guys wanted to work into the theme, but it might be useful since the cart icon has the ability to show up on every page.
Here is what I did:
Edit config.php in enfold\config-woocommerce\config.php
Line 758
$output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."><span class='hide'>Cart</span></span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";
Hi Devin,
HAPPY NEW YEAR :D
I had the next appointment with the client today. Could you help me with the following issues?
1) The inserted image in the header.php “DIREKT KONTAKT” is not linked to the contact page and not aligned right anymore but it should.
2) Can I set up PT Sans for the Body Copy? I can’t choose it from the ENFOLD menu.
3) The headlines (H1 – H6) are all bold/strong. Can I set them to regular globally?
4) How can I increase the line spacing for certain headlines?
5) How can I change the color of the email-symbol (Socail Icon) in the header to the global orange (#e6742d)?
6) How can I decrease the space between color sections globally? It should be half the space then now.
7) Can I remove the arrows in the ajax portfolio view? They are for navigating from project to project but the client doesn’t want them.
If you need any additional information please let me know.
Thank you so much in advance!!
Cheers,
Jan :)
Hey progenki!
Please go to Appearance > Editor and open Header.php file and find
do_action('ava_after_main_menu');
and add following code right below it
echo get_search_form();
then add following code to Quick CSS in Enfold theme options under Styling tab
@media only screen and (min-width: 767px) {
#top #searchform>div { display: none; }}
Regards,
Yigit
This reply has been marked as private.
This reply has been marked as private.
Hi babayard!
Please download the theme again on your themeforest account then upload it via FTP. Watch this video by Devin: https://vimeo.com/channels/aviathemes/64927356
Also, try to update the theme right through the dashboard. Refer to this link: http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
Ismael
Hi!
With the number of menu items you have my guess is that your servers hitting its limit in the number of things it can save at once, eg the max input vars.
Talk to your hosting provider about increasing the values as suggested here: http://stackoverflow.com/questions/10303714/php-max-input-vars
For now, I’ve set the menu using the secondary tab “Manage Locations” in your menus manager which seems to stick and isn’t running into the issues of the server slowing down and trying to save that much data at once.
Cheers!
Devin
getting this when I use the fullwidth slider:
Strict Standards: Non-static method AviaHtmlHelper::modal_group() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 109
Strict Standards: Non-static method AviaHtmlHelper::modal_group_sub() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 217
Strict Standards: Non-static method AviaHtmlHelper::modal_group_sub() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 217
Strict Standards: Non-static method AviaHtmlHelper::modal_group_sub() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 217
Strict Standards: Non-static method AviaHtmlHelper::modal_group_sub() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 217
Strict Standards: Non-static method AviaHtmlHelper::modal_group_sub() should not be called statically in /home/cphfilm/public_html/2014/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/html-helper.class.php on line 226
Hi again,
1- this did not work, I even added an !important; to the last line.
@media only screen and (max-width: 989px) and (min-width: 768px) {
.header-buttons {
left: 0;
}
Here is my current code, that I’ve added in the Quick CSS:
/*Add reserve now button to Header-added code to header.php*/
.header-buttons {
position: absolute;
right: 0;
border: none;
top: 0;
left: 495px;
}
.header_color .header-buttons a {
display: block;
padding: 2px 7px 5px 7px;
font-size: 21px;
font-weight: bold;
float: left;
color: #f8d699;
border-radius:0px 0px 15px 15px;
}
.header-buttons a.header-chat { background-color: #985e06; left center no-repeat; }
/*Color hover of TripAdvisor*/
#top .social_bookmarks_tripadvisor:hover a {
color:#ff;
background-color: #29A959;
}
/*testing- Move Reserve button on iphones*/
@media only screen and (max-width: 989px) and (min-width: 768px) {
.header-buttons {
left: 0px !important;
}
2. As you suggested, I’d like to hide the layerslider on mobile. Can you tell me how to do that? Do I still need to assign a css selector? If so, can you point to or share more info on how to do that? I’m only familiar enough with it to be dangerous at this point.
Thanks -Lynn
You can find the website at this link: http://bit.ly/1fqPkFc
i got now the same. It was all running. Had uploaded fonts before…. Now trying to upload another font i see the same errormessage. Zip is activated … dont know what happend. I testet it with various font-files. No Luck. Other Idea than reinstall?
The DB Row avia_builder_fonts mangages the fonts…. Maybe i replace only the one table and it should run …
At the moment it has this content:
a:1:{s:5:”mario”;a:3:{s:7:”include”;s:16:”avia_fonts/mario”;s:6:”folder”;s:16:”avia_fonts/mario”;s:6:”config”;s:11:”charmap.php”;}}
What is standard content? Empty right? And is there an other row managing fonts?
The message i see:
Couldn’t add the font.
The script returned the following error:
Fatal error: Call to a member function attributes() on a non-object in /homepages/5/d132518056/htdocs/,,,/…/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/font-manager.class.php on line 179
I replaced the file … no chance to get it running. Need a solution :-(
PS. Plugins are compatibel. There is no conflict!
-
This reply was modified 12 years, 2 months ago by
docperi.
I’m getting this now:
Parse error: syntax error, unexpected ‘;’ in /home/cphfilm/public_html/2014/wp-content/themes/enfold-child/functions.php on line 27
here is the php
…
*/
add_filter(‘kriesi_backlink’,’__return_false’);
if (WP_DEBUG && WP_DEBUG_DISPLAY)
{
ini_set('error_reporting', E_ALL & ~E_STRICT & ~E_DEPRECATED);
}
what is wrong there?
Hello,
I would like to have only the flags in my mainmenu, i have sellected the right option in the WPML admin options, but it always show the languages in a drop down list.
I allready read this: https://kriesi.at/support/topic/problem-with-wpml-language-selector/ but it do not help me.
I can’t give you my website URL because it’s under developpement and private but i can give you a simple acces if you want to see it ?
I also read this: http://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/ but i would be forced to include some PHP/CSS/HTML code into you theme… :-(
Thanks
PS: please excuse my bad english, i’m not english…
did not fix the problem. my child theme functions.php is:
<?php
/*
* add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
$fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘PT Sans’] = ‘PT Sans:400,700,400italic,700italic’;
$fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow:400,700’;
return $fonts;
}
if (WP_DEBUG && WP_DEBUG_DISPLAY)
{
ini_set('error_reporting', E_ALL & ~E_STRICT & ~E_DEPRECATED);
}
*/
add_filter(‘kriesi_backlink’,’__return_false’);
anything wrong there? I have not made a child theme before.
IT happened after I deactivated and reactivated some plugins (google font manager after tinyMCE was not working…) I’m new to google fonts and all that – is that the problem?
Hey imaginemedia777!
The updated plugin is not yet supported with the theme officially. Kriesi is still testing it and making sure it wont effect how the theme integrates with LayerSlider.
You can opt to only use the LayerSlider stand alone plugin by adding the following at the top of your functions.php file just after the global avia_config variable is introduced:
add_theme_support('deactivate_layerslider');
Or just at the top of your child functions.php.
Best regards,
Devin
Hey!
It is going to be a bit more complicated but, please remove the code i posted from Quick CSS and go to wp-content\themes\enfold\includes folder and open loop-index.php file and find
echo "<div class='post_author_timeline'></div>";
echo "</article>";
and change it to
echo "<div class='post_author_timeline'></div>";
echo "<hr class='bl' /></article>";
and add following code to Quick CSS
hr.bl { width: 75%; margin-left: 15%; }
Regards,
Yigit
Hey!
Edit header.php, find this code on line 117:
<body id="top" <?php body_class($style." ".$avia_config['font_stack']); ?>>
Below, add this code:
<div id=”fb-root”></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=526220487494071";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Edit single.php, find this code:
//wordpress function that loads the comments template "comments.php"
comments_template( '/includes/comments.php');
Replace it with:
echo '<div class="fb-comments" data-href="http://www.indiatrail.org/blog/" data-numposts="5" data-colorscheme="light"></div>';
Best regards,
Ismael
Hey jtree5757!
You can add a unique selector for each Avia Elements. Edit functions.php, find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_theme_support('avia_template_builder_custom_css');
Edit any avia elements like the Special Heading then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “awesome_heading”.
You can add something like this on your custom.css or Quick CSS:
.av-special-heading.awesome_heading {
position: absolute;
left: 0px;
}
@-webkit-keyframes heading-animation {
0% { left: -70px; opacity: 0; }
100% { left: 0; opacity: 1;}
}
@-moz-keyframes heading-animation {
0% { left: -70px; opacity: 0; }
100% { left: 0; opacity: 1;}
}
@-o-keyframes heading-animation {
0% { left: -70px; opacity: 0; }
100% { left: 0; opacity: 1;}
}
@keyframes heading-animation {
0% { left: -70px; opacity: 0; }
100% { left: 0; opacity: 1;}
}
.av-special-heading.awesome_heading {
-webkit-animation: heading-animation 2s;
-moz-animation: heading-animation 2s;
-o-animation: heading-animation 2s;
animation: heading-animation 2s;
}
Reload the page. :)
Cheers!
Ismael
Hi
Here’s the reported error I received from WP Engine support:
[Sat Jan 11 17:40:16 2014] [error] [client 173.217.8.71] PHP Fatal error: Cannot redeclare layerslider_load_lang() in /nas/wp/www/cluster-1590/lysejewelry/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php on line 117, referer: http://lysejewelry.wpengine.com/wp-admin/update-core.php (hosted on WPengine)
Hope this can help you resolve my problem
Lyse
This reply has been marked as private.
Hey!
Please try to increase the allocated php memory to 128M: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
If this doesn’t help try to re-install WP3.8 and Enfold 2.4.5 with ftp: https://vimeo.com/channels/aviathemes/67209750
Regards,
Peter
Hi guys,
I posted about this a few days ago but no responses in the last couple of days and still trying to sort this out.
I would like to set this up to be fixed on the left side of the page just to the left of my content, and fixed about halfway down the page.
This is the code from Shareaholic to insert it into the site –
<?php echo do_shortcode(‘[shareaholic app=”share_buttons” id=”4766761″]’); ?>
<?php echo do_shortcode(‘[data-app-id=”4766761″]’); ?>
And here’s an example of some CSS that I found of someone positioning this plugin
p.pos_fixed {
position:fixed;
top: 30px;
left: 50px;
}
I’m not sure how to fit the css into the <?php code and I’m also not sure which .php template file to put it in.
Thanks in Advance
Jonny
Hello Support,
I updated my Enfold theme today via FTP and ran into some errors that display when viewing the site. I was running WordPress 3.7 at the time, so I updated to WordPress 3.8 but that didn’t fix the issue. Next, I tried commenting out the line of PHP that the browser describes but that just led to a new error message pointing to a different file. I reset my edits and decided it’s best to let you guys lend your expert opinion.
I’ve updated some other sites to Enfold 2.4.5 and WordPress 3.8 without a problem, so I’m not sure what’s happening here. Any thoughts?
You can view the site at: http://eklundcrafts.com/
Thanks!
Hi,
Open config-templatebuilder/avia-shortcodes/masonry_entries.php and look for line 748:
$this->loop[$key]['html_tags'] = array('a href="'.$this->loop[$key]['url'].'"','a'); //opening and closing tag for the masonry container
Replace it by this:
$this->loop[$key]['html_tags'] = array('a href="'.wp_get_attachment_image_src($this->loop[$key]['thumb_ID'], 'full')[0].'"','a'); //opening and closing tag for the masonry container
Regards,
Josue