Hey Jonathan!
So your trying to get the archives to display the masonry instead of one of the default blog styles correct? This is going to take a lot of time and code and would have to be considered custom work. You could try editing the archive.php file and use the do_shortcode WordPress function but it’s going to take a lot of work.
As for the sidebar find line 79 in the sidebar.php file.
$avia_config['currently_viewing'] = 'blog';
And change it to this.
$avia_config['currently_viewing'] = 'page';
And then add this beneath it.
$avia_config['overload_sidebar'] = 'test';
Where “test” is the name of your custom widget area.
Regards,
Elliott
Hey!
Open up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and on lines 378 – 384 you should see this.
if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
{
$link_add = $commentCount === "0" ? "#respond" : "#comments";
$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
}
Change it to this.
$output .= '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
$output .= '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>';
$output .= '<span class="vcard author"><span class="fn">';
$output .= get_the_author_link();
$output .= '</span></span>';
$output .= '</span>';
$output .= "<div class='slide-meta-del'>/</div>";
Cheers!
Elliott
After my last reported issue on the images upload problem which I reported here, I deleted my existing wordpress installation and created a new one. I just installed Enfold, added my logo files, downloaded the Enfold Restaurant demo and went to edit the page. When I try uploading the image, it fails to finish the processing. I look in the uploads folder through FTP and found that the image gets uploaded properly with appropriate permission and then various copies of the image with different sizes are also created. At this point I see that the CPU usage is full and then after sometime I receive an error that image could not be uploaded whereas I can use a direct URL to open the image.
I contacted my Hosting Provider and they sent me a log stating the following (http://support-tools.com/?4a872e870df68d59#MQZCVR/qJ65hMdX8gcc3V1PZz0gkIkyy2JybsaZLv3I=)
A time of 300 seconds is given to any PHP process to read data from the server. But your domain demo.inck.in was unable to get the data on time.
Please note that the maximum query execution time set in our servers is 15 seconds and any query above this execution time gets killed automatically.
I could find a lot of MySQL sleep queries which are not getting killed automatically. The corresponding logs can be found in the file ‘killed_mysql_queries.log’ under your home directory.
From all these logs, it is evident that the hosting package is easily exceeding the resource limits. This can be attributed to poor coding. Hence, we highly recommend you to contact the site developer to optimize the coding and also SQL queries(by indexing method) to resolve the issue.
Can you guys please help me as I have already wasted a month trying to get enfold to work and migrate my website to this wonderful theme
Hey Orit!
FTP access doesn’t work on my end (http://screencast.com/t/7mGO3NH3), can you please create an empty functions.php file in your child theme directory? so we can edit it from the Dashboard.
Best regards,
Josue
Hi,
I created a backup with BackupBuddy and imported it into Desktopserver. Usually this gives me no problems at all with my client sites, but now I am running into an issue.
I get this warning at the top of my page:
Warning: session_start(): open(\xampplite\tmp\sess_3qegcgp126lvm4fbp6u58d3ar7, O_RDWR) failed: No such file or directory (2) in D:\DesktopServerwebsites\www.mysite.dev\wp-content\themes\mysite\config-templatebuilder\avia-shortcodes\masonry_entries.php on line 32
I am not sure what it means. Just to be sure I took the theme files from my server and copied them to the themes file inside the local installation. But that didn’t change anything.
Can anyone shed any light on what the message means and what I can do?
My site seems to function okay except that I am missing the text on the blue background
http://kriesi.at/themes/enfold-business-flat/
(Howdy Guys! ….)
and I used the sticky menu and when I scroll down it shows a gap above it.
Hey website2create!
Open up /enfold/framework/php/function-set-avia-frontend.php and find line 777.
$output .= "<$wrapper class='pagination'>";
Add this beneath it.
$output .= '<span class = "previous_pagination">'.get_previous_posts_link('Previous').'</span>';
And line 793 you should see this.
$output .= "</$wrapper>".get_next_posts_link()."\n";
Add this above it.
$output .= '<span class = "next_pagination">'.get_next_posts_link('Next').'</span>';
And you can style them with this.
.previous_pagination { }
.next_pagination { }
Cheers!
Elliott
When I activate a plugin I get this fatal error. Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 277689 bytes) in /home/hfb1406/public_html/wp-content/themes/enfold/css/dynamic-css.php on line 792
How do I fix this when its activated.
Thanks and Happy New year.
When I Update a page after edit, report this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 128 bytes) in /home/unbuenplan/www/wp-includes/meta.php on line 826
Hey crkgolf!
You can go to Appearance > Editor and open Functions.php file and find image sizes there
$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
If you would like to change the sizes, please do not forget to regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
Yigit
Hey!
@p_castro: Thank you for taking interest on improving the Enfold theme on legacy browsers such as IE8. We all know that this browser will become obsolete soon, if not, will be almost non-existent on windows machines on the coming years. I’m not going to bore you with the details but the IE8 usage or global market share ranged from 6% to 8% and continues dwindle to the point that it is no longer sensible to exert too much effort on supporting this browser. Windows XP is the main reason IE8 stayed that long on the browser circulation. The OS is widely use on the PC ecosystem, particularly for businesses, but Microsoft already ended their support on Windows XP last April. With the ending of support for XP, users are essentially going to be forced into having to upgrade their operating systems to receive assistance, security updates, et cetera. Upon upgrading to these newer systems, users will need to also update their browser to a newer version. Still, Enfold is compatible with the browser with few minor flaws which are to be expected given the fact that IE8 is an almost 6 year old piece of software. Also, Envato no longer requires Internet Explorer 8 support from their themes which is why other premium themes such X doesn’t claim IE8 compatibility.
@Sladestyle: Please try to replace the code with this:
function add_custom_slider(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() >= 735){
jQuery(".homeslide-mobile").hide();
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_slider');
Cheers!
Ismael
Hey!
Please check the site now: http://clubhotelloutraki.gr.5-189-131-5.socialdive.gr/
We edited the code on functions.php, line 17:
function avia_add_custom_icon($icons) {
$icons['foursquare'] = array( 'font' =>'fontello', 'icon' => 'ue800');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
function avia_add_custom_social_icon($icons) {
$icons['Foursquare'] = 'foursquare';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
You can now add the new social icon on Enfold > Social Profiles panel.
Cheers!
Ismael
This reply has been marked as private.
login to wp not possible anymore…
Warning: Cannot modify header information – headers already sent by (output started at /beawures/www.beachsummergames.com/wp-config.php:1) in /beawures/www.beachsummergames.com/wp-includes/pluggable.php on line 1178
Hey!
Please go to Appearance > Editor and open Footer.php file and find
<a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span></a>
and change it to
<a href='#top' title='<?php _e('Scroll to top','avia_framework'); ?>' id='scroll-top-link' <?php echo av_icon_string( 'scrolltop' ); ?>><span class="avia_hidden_link_text"><?php _e('Scroll to top','avia_framework'); ?></span><div class="avia-tooltip avia-tt"><div class="inner_tooltip">Scroll to top!</div><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></div></a>
then add following code to Quick CSS
a#scroll-top-link .avia-tooltip.avia-tt { top: -70px; left: -50px; display: none; opacity: 0; }
a#scroll-top-link:hover .avia-tooltip.avia-tt { display: block!important; opacity: 1!important; }
Cheers!
Yigit
Hey!
Please try adding following code to Functions.php file of your child theme
function add_custom_gtm(){
?>
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MN3P7B"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:";j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MN3P7B');</script>
<?php
}
add_action('wp_head', 'add_custom_gtm');
Best regards,
Yigit
-
This reply was modified 10 years, 10 months ago by
Yigit.
Hi hmsvictory!
Open up /enfold/config-woocommerce/config.php and change line 782 from this.
add_action( $position, 'avia_woocommerce_cart_dropdown', 10);
To this.
add_action( 'ava_inside_main_menu', 'avia_woocommerce_cart_dropdown', 10);
Regards,
Elliott
Hi Elliot,
On second thoughts, does editing the functions.php exclude taxonomies for all posts? I would like to specify selective taxonomies for different custom post types, will that be possible?
For e.g.
In Custom Post Type A, I want to show date, time and author.
In Custom Post Type B, I want to show date, time, author, category and slug2taxonomy.
p/s: Just realised I didn’t attached the image in my previous post #372692 http://imgur.com/QMXJPd2
-
This reply was modified 11 years, 3 months ago by
senso.
This reply has been marked as private.
Hi,
I had a bug with an enfold child theme with a long name.
The theme name is used to set an option in wordpress. If the theme name is too long, it doesn’t fit in the database (option name is varchar(64)). this leads to fire the avia_import_sample_slider function (enfold/config-layerslider/config.php l.73) on each page load, which create news sliders on each page load.
I commented out the function call so the sliders are not duplicated anymore but this should be fixed.
Thanks,
Damien
Hey!
Media queries do not work on IE8. Please try adding following code to Functions.php file in Appearance > Editor
function add_custom_slider(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() <= 735){
jQuery(".homeslide-mobile").hide();
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_slider');
Cheers!
Yigit
This reply has been marked as private.
Hi,
Brilliant!
It works perfect for now.
For others who would like to achieve the same, include this code to your functions.php in your child theme:
/* Enable Social Share Buttons */
add_filter('avf_title_args', 'avia_add_social_toolbar_template_builder', 10, 2);
function avia_add_social_toolbar_template_builder($args, $id)
{
$args['additions'] .= avia_social_share_links(array(), false);
return $args;
}
And include this in your style.css in your child theme:
/* Title Social Share Section Adjustment */
.title_container .av-share-box { width: 200px; margin-top: 2px; }
.title_container .av-share-box ul li a { padding: 5px 0; }
.title_container .av-share-box .av-share-link-description { display: none; }
.title_container .av-share-box .avia-related-tooltip { display: none !important; }
@media only screen and (max-width: 767px) {
.title_container .av-share-box { display: none; }
.responsive .title_container .breadcrumb { position: absolute; right: auto; top: 50%; margin-top: -7px; left: -2px; }
}
Thank you!
A.
We need to add the “Google Tag Manger» http://www.google.com/tagmanager/ code to our Enfold site at http://KundeKontroll.no
B.
We would like to add the code as a «hook» or in some other way so the Google Tag manger code does not get overwritten / deleted every time there is a new version of WordPress or the Enfold theme. If I add the code to the /enfold/functions.php or header.php file then it’s being overwritten when upgrading to the next version of Enfold or WordPress. How can I add the code so there is no need to re-enter the GTM code every time there is a new version of WordPress or Enfold?
C.
This is the code that needs to be placed just after the opening / start <body> tag.
<!– Google Tag Manager –>
<noscript><iframe src=”//www.googletagmanager.com/ns.html?id=GTM-MN3P7B”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘//www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-MN3P7B’);</script>
<!– End Google Tag Manager –>
This reply has been marked as private.
Hey studioinktvis!
I am not 100% sure what you mean but I guess you want to show an uncropped picture?
If thats the case you need to edit the picture size for the magazine element in your functions.php file. In the functions.php file at around line 107 you need to change:
$avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines
to
$avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375, 'crop'=>false ); // images for magazines
Once that is done all images uploaded from this point wont be cropped and are just smaller versions of the original images. These changes dont apply to existing uploads. If you would want to change that you need to use a plugin to regenerate the thumbnails: https://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
Kriesi
This reply has been marked as private.
Hi!
2.) You can use this on functions.php:
/**
* Add elements on the main header
*/
add_action('ava_main_header', 'ava_main_header_addition');
function ava_main_header_addition() {
$output = "CALL ME MAYBE: 123456";
echo $output;
}
3.) Remove the code provided above along with this one:
.html_header_sidebar .logo img {
width: 50%;
}
Use this instead:
@media only screen and (max-width: 767px) {
.responsive .logo {
width: 100%;
}
.html_header_sidebar .logo img {
display: inline-block;
}
.responsive .logo a {
text-align: center;
}
}
Best regards,
Ismael
I have issues with Enfold Blog entries’ text editor.
– both Visual and Text formats show html tags
– the wisiwig editing buttons are displayed only when I select the Text format.
– the text color in the Visual format is white so I can’t see anything when make updates.
The page’s editor doesn’t not work.
Please can you help me?
Chrome inspector show this.
Failed to load resource: the server responded with a status of 403 (Forbidden)
post.php?post=1014&action=edit&lang=es:3070 Uncaught ReferenceError: tinymce is not defined
wp-langs-en.js:235 Uncaught ReferenceError: tinyMCE is not defined
post.php?post=1014&action=edit&lang=es:3065 Uncaught ReferenceError: tinymce is not defined
load-scripts.php?c=1&load[]=jquery-ui-draggable,jquery-ui-droppable,jquery-ui-datepicker,jquery-ui-…:478 Uncaught TypeError: Cannot read property ‘top’ of undefined
9load-scripts.php?c=1&load[]=jquery-ui-draggable,jquery-ui-droppable,jquery-ui-datepicker,jquery-ui-…:899 Uncaught TypeError: Cannot read property ‘hasClass’ of undefined
load-scripts.php?c=1&load[]=jquery-ui-draggable,jquery-ui-droppable,jquery-ui-datepicker,jquery-ui-…:478 Uncaught TypeError: Cannot read property ‘top’ of undefined
Hi!
I found the code in Footer.php file in Appearance > Editor and tried to remove it but now your website gives “Internal Server Error”.
If that happened because of the ads code i removed, you can simply re-update the theme via FTP and overwrite all files to recover – http://vimeo.com/67209750
Cheers!
Yigit