-
AuthorSearch Results
-
August 21, 2014 at 4:37 pm #307431
In reply to: Sticky header for mobile
Hi!
Please try adding following code to Functions.php file in Appearance > Editor
function add_custom_script(){ ?> <script> jQuery(window).load(function(){ if (jQuery(window).width() <= 768){ jQuery("html").removeClass("html_header_sticky"); } }); </script> <?php } add_action('wp_footer', 'add_custom_script');Regards,
YigitAugust 21, 2014 at 7:16 am #307188In reply to: Feed problems
Hey Dan!
Open header.php and remove from line 34 to line 37:
<!-- add feeds, pingback and stuff--> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />Cheers!
JosueAugust 19, 2014 at 8:27 pm #306504In reply to: Aspect Ratio for "Big Preview Image"
Hey,
Thanks for the information. Given this, I am hoping that I can somehow increase the height of the images. Is this simply a matter of changing the height to 360? For example
Change This:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>710, ‘height’=>270);To this:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>710, ‘height’=>360);The reason I ask is because the default aspect ratio is not good for social media. In particular, I have found that Google+ will display the featured image as a tiny image at Enfold’s default aspect ratio instead of a large image. It’s similar on Twitter and Pinterest. You can view a sample on my G+ profile here: https://plus.google.com/u/0/+KyleSchmidt1/posts You’ll see the tiny picture for the second post down on the left.
To answer your previous question, I have always used a right sidebar. Something that may be important to know is that prior to the most recent Enfold update, I noticed that the images on my blog posts stretched farther right so that the right side of the image ran flush against the right sidebar container. I always thought this was weird, but didn’t worry about it. With the most recent update, this changed and there is now padding between the right sidebar and image, which is undoubtedly intended.
It’s also important to note that I have always increased the size of the right sidebar and decreased the size for the content container in functions.php as follows:
$avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘twelve alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ‘two alpha’, ‘entry’ => ‘eleven’);
$avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘eight’, ‘sidebar’ => ‘four alpha’ ,’meta’ => ‘three alpha’, ‘entry’ => ‘eight’);
$avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘eight alpha’, ‘sidebar’ => ‘four alpha’, ‘meta’ => ‘three alpha’, ‘entry’ => ‘eight alpha’);Again though, this has always been the case. My blog url is blog.bluepipes.com.
In any case, if you could let me know how I can properly increase the height of the images, then that would be great!!
Thanks so much for the help!
Kyle
August 19, 2014 at 6:01 pm #306450Hi!
You can insert a custom description text into the “Meta Description” field if the auto generated seo description doesn’t return the right content: https://www.clipular.com/c/6257239794909184.png?k=c2mZn14W6i2Mw-p3QqKL-_olCHA
Yoast SEO will read the content of all shortcodes/template elements and because you didn’t delete the demo posts: http://www.worldwiderunners.com/wp-admin/edit.php it also reads the demo “lorem ipsum” text if you add the post slider to the template.Regards,
PeterAugust 19, 2014 at 3:40 pm #306373In reply to: Images in Categories and Read More
This reply has been marked as private.August 19, 2014 at 2:20 pm #306319thijsvanhalewijn
ParticipantHelp!!!
After the latest update to Enfold version 2.9.1 the website is completely broken.
Getting the error message:
Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/deb62238/domains/intu-jewelry.nl/public_html/enfold/wp-content/themes/enfold/css/dynamic-css.php on line 772I have tried all solutions mentioned in the forum:
– manually updating the theme via ftp
– re-upload the wp-content/themes/enfold/functions-enfold.php file. It contains the function mentioned in the first post (avia_get_header_scroll_offset())
– overwriting all files via FTP once again
– switch to main theme first, then updating and switching back to child theme again afterNone of these worked!
The only solution that works is:
– manually overwrite wp-content/themes/enfold/css/dynamic-css.php with an old version (from months ago)
But … that is no good solution, since it will be overwritten with every new update of the theme…..Could anyone please help me out???
We are under immense pressure to go live asap!!!
Thanks very much!
Kind regards
Thijs-
This topic was modified 11 years, 7 months ago by
thijsvanhalewijn.
August 19, 2014 at 4:45 am #306074In reply to: Aspect Ratio for "Big Preview Image"
Hi kls1138!
Thank you for using the theme.
Do you mind if we take a look at the actual blog page? Are you using a sidebar? The size should be 845x321px by default for responsive large layout. You can find it on functions.php:
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 }This is for the standard responsive layout:
$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 sliderBest regards,
IsmaelAugust 19, 2014 at 4:29 am #306065In reply to: How TO add BBB Accredited Site seal In Header
Hey!
Thank you for the info.
Please use this on functions.php:
function ava_add_seal() { ?> <div class="header-seal"><a target="_blank" title="CLC Landscape & Irrigation BBB Business Review" href="http://www.bbb.org/wyoming-and-northern-colorado/business-reviews/landscape-contractors/clc-landscape-irrigation-in-windsor-co-46013758/#bbbonlineclick"><img alt="CLC Landscape & Irrigation BBB Business Review" style="border: 0;" src="http://seal-wynco.bbb.org/seals/blue-seal-280-80-clc-landscape-irrigation-46013758.png" /></a> </div> <?php } add_action('ava_main_header','ava_add_seal');Use this on Quick CSS to adjust the position of the seal:
.header-seal { position: absolute; right: 0; top: 0; }Regards,
IsmaelAugust 18, 2014 at 6:58 pm #305917In reply to: How TO add BBB Accredited Site seal In Header
I DID the following in the post the recommended
echo avia_logo(AVIA_BASE_URL.’images/layout/logo.png’, $addition, ‘strong’, true);
echo “<div class=’header-custom-image’>
</div>”;After I inserted this in the site I got the following error
Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting ‘,’ or ‘;’ in /home/deerstone/public_html/clclawncare/wp-content/themes/enfold/includes/helper-main-menu.php on line 103
This is a SEO SITE SEAL with a backlink to the clients BBB Review site. So its not just an an Image. How do I get this code to work properly?
-
This reply was modified 11 years, 8 months ago by
deerstonedevelopment. Reason: this is the code
August 18, 2014 at 5:17 am #305552In reply to: How to Disable Enfold creating Media Image Sizes ??
I was able to remove the re-sizing images from being created by Enfold theme simply by adding a /* at line 92 and */ at line 111 in the function.php. This was an easy and elegant solution to my needs. I was looking for any easy way to disable the resizing prior to uploading over 50 large images to use in my portfolio via Lightroom and FTP with only one dimension required for use in the theme. I needed to easily turn on and turn off the resizing function. You may find this method useful for other customers in the future, rather than removing all those lines from functions.php…
I don’t know why //avia_backend_add_thumbnail_size($avia_config); did not work. But it gave me the idea to use my process above. Using the same logic, to comment out. I also deactivated the plug-in simple image sizes, one less plugin is a good thing.
thanks,
Ed
August 17, 2014 at 7:36 pm #305466In reply to: How to Disable Enfold creating Media Image Sizes ??
You could try removing the entire set of image sizes from the functions.php just above that line which is where they are defined:
$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 );Though it shouldn’t be needed it is the line by line settings for what image sizes are loaded into the avia_config array.
August 17, 2014 at 8:22 am #305401In reply to: Issues with translating to Farsi RTL Language
Hey Amir!
I found a better workaround, try adding this at the very end of your theme functions.php file:
function rtl_columns_fix(){ ?> <script> (function($){ var resizeTimeout, sortedReverse = false; $(window).resize(function () { if (resizeTimeout) { window.clearTimeout(resizeTimeout); } resizeTimeout = window.setTimeout(function () { var windowWidth = window.innerWidth; if ((windowWidth < 767 && !sortedReverse) || (windowWidth >= 767 && sortedReverse)) { var rtlContainer = $('.entry-content-wrapper'); rtlContainer.each(function(){ var rtlCols = $(this).children('.flex_column'); $(this).append(rtlCols.get().reverse()); }); sortedReverse = !sortedReverse; } }, 100); }).trigger("resize"); })(jQuery); </script> <?php } if(is_rtl()) { add_action('wp_footer', 'rtl_columns_fix'); }Cheers!
JosueAugust 16, 2014 at 11:14 pm #305365deamon54
ParticipantHi,
I am updating the theme, I lost my setup ….After that go to includes folder and duplicate loop-page.php. Rename the duplicated file to loop-forum.php. Edit it and find this code
<div class=”<?php avia_layout_class(‘content’); ?> alpha units entry-content”>
Replace it with
<div class=”twelve alpha units entry-content”>
I do not have the line: <div class=”<?php avia_layout_class(‘content’); ?> alpha units entry-content”> in loop-page.php
I do not know what to do, everything was perfect before the update :(
thank you for your reply
August 16, 2014 at 6:57 pm #305337Hi Lexie!
I’m not familiar with those plugins, and debugging third party plugins is outside of our scope. Basically what you need to do is replace the second line with any [shortcode] or PHP function the plugin offers to make its buttons appear (the function_exists conditional is not mandatory).
$prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , 60) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, ''); $prepare_excerpt .= "SOMETHING";Also, you have access to the permalink and title, so you can even build your own social share links:
$prepare_excerpt .= get_permalink($the_id).get_the_title($the_id);For example, to get the like count button:
$prepare_excerpt .= '<iframe src="//www.facebook.com/plugins/like.php?href='.get_permalink($the_id).'&width&layout=button_count&action=like&show_faces=false&share=false&height=21&appId=217816428346969" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>';Best regards,
JosueAugust 16, 2014 at 10:21 am #305242Topic: Fetch Facebook Albums and display photos in Masonry Gallery
in forum Enfoldnuanda74
ParticipantHi,
I have an idea and maybe you can help me.
I love masonry galleries but I’d like to display images FROM my facebook page albums.
I’ve found a plugin, Facebook Photo Fetcher, that is able to fetch photos from Facebook but its look is awful :)
In the plugin page (http://www.justin-klein.com/projects/facebook-photo-fetcher/) I’ve found this:
—
Albums from PHP
If you’ve got a custom template or widget in which you’d like to include a gallery, you can call the function fpf_fetch_album_content() directly. It accepts the same parameters as the HTML tags above; for example:
$album = fpf_fetch_album_content( ‘123456789’, array(‘cols’=>6, ‘max’=>18) );
echo $album[‘content’];
echo “Cover photo: ” . $album[‘cover’] . “, Photo Count: ” . $album[‘count’];
—
My answer: would it be possible to modify Masonry Gallery to use this function and display Facebook images? Would it be simple?August 16, 2014 at 5:45 am #305179In reply to: Incorrect page titles
Hi brian7454!
Thank you for using Enfold.
1.) You can remove the avia_which_archive function’s default title with this on functions.php:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ( is_category() ) { $output = __('','avia_framework')." ".single_cat_title('',false); } elseif (is_day()) { $output = __('','avia_framework')." ".get_the_time( __('F jS, Y','avia_framework') ); } elseif (is_month()) { $output = __('','avia_framework')." ".get_the_time( __('F, Y','avia_framework') ); } elseif (is_year()) { $output = __('','avia_framework')." ".get_the_time( __('Y','avia_framework') ); } if(!empty($output)) $args['title'] = $output; return2.) Add this one in order to input the actual name of the post instead the word “Blog” for single post view:
add_filter('avf_title_args', 'fix_blog_page_title', 10, 1); function fix_blog_page_title($args) { if(is_singular() && !is_page()) { $args['title'] = get_the_title(); $args['link'] = get_permalink(); } return $args; }3.) No, unfortunately, it doesn’t have a login page but you can browse the wordpress plugin library for such plugins. Honestly, we haven’t tested this kind of plugins yet but I’m sure they won’t interfere with the theme.
Cheers!
IsmaelAugust 16, 2014 at 1:37 am #305144Hey!
This is the shortcode that is appearing on single posts:
Now you just need to change that; while editing this page, look for the debug area below the Layout Builder, you’ll note a similar code (av_slideshow…), paste that in functions.php.Best regards,
JosueAugust 15, 2014 at 10:27 pm #305101In reply to: Issues with translating to Farsi RTL Language
Hi!
That space is coming from this text you have here in the source:

I’m not sure how it got there, try checking in the header.php file.
Regarding the icons, can you please create a mockup/screenshot of how they should look in RTL?
Cheers!
JosueAugust 15, 2014 at 3:47 pm #304944In reply to: Random issues with pictures and logo
This reply has been marked as private.This reply has been marked as private.August 15, 2014 at 10:07 am #304779In reply to: mobile content
Hey davisar!
Thank you for using the theme.
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');You can create add “hide-mobile” as custom css class for elements that you want to hide on mobile view then use this on Quick CSS:
@media only screen and (max-width: 767px) { .hide-mobile { display: none !important; } }Regards,
IsmaelAugust 15, 2014 at 9:26 am #304762In reply to: WPML Language Switcher and Header arrangment
Hey afarahani!
1) You can use this code to remove the default theme flags completely – insert it into the functions.php file:
add_action('after_setup_theme','avia_remove_main_menu_flags'); function avia_remove_main_menu_flags(){ remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 ); remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 ); remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10); }Then go to WPML > Languages and tick the “Display the language switcher in the WP Menu” option. You can also configure the language switcher type (dropdown, list, etc.) on this option page.
2) Try to insert this code into the quick css field to move the mail address to the next line:
@media only screen and (max-width: 767px){ .responsive .phone-info{ display: block; margin-top: 29px; } }3) Use this css code and adjust the font-size value:
.phone-info span { font-size: 20px; }Regards,
PeterAugust 15, 2014 at 5:36 am #304719Hey Raúl!
One solution could be to have different tags (gestión-documental-posts – gestión-documental-portfolio) for Posts and Portfolio items.
Also, you could try the following, open tag.php and look for line 71:
'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key )Change it to:
'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=> $key, 'posts_per_page' => 12)Replace 12 by the maximum number of posts you want to show per post type on the tag page.
Regards,
Josue-
This reply was modified 11 years, 8 months ago by
Josue.
August 15, 2014 at 4:48 am #304697Hi,
1. Open /includes/helper-main-menu.php and look for line 68:
if($phone) { echo "<div class='phone-info {$phone_class}'><span>{$phone}</span></div>"; }2. Replace it by this:
if($phone) { echo "<div class='phone-info {$phone_class}'><span>".do_shortcode($phone)."</span></div>"; }3. Then install this plugin: Widget Shortcode.
4. Go to Appareance > Widgets and look for the qTranslate specific shortcode:

5. Finally paste the shortcode here:

Regards,
JosueAugust 15, 2014 at 12:04 am #304635In reply to: enfold upload into wordpress
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 7680 bytes) in /data/17/1/154/148/1806311/user/1956269/htdocs/wordpress1/wp-admin/includes/template.php on line 370
this is the error i get after its downloaded and i try to activate.
August 14, 2014 at 5:27 pm #304492Hi!
I tested the “Duplicate” translation option and it worked just fine for me. Tick the “duplicate” checkbox and click the duplicate button: http://www.clipular.com/c/6119929287802880.png?k=loBt_iScpDt0C3ouj7fQWSBncOw . Afterwards go to the duplicated (translation) of the page and click the “Translate Independently” button: http://www.clipular.com/c/6352167833174016.png?k=UZaLhUaust52mHmU_TkKpZ8RQnY . Then translate/change the content and save it and you’re ready. I tested the translation with the “About me” page. You can also test it with this page here: http://heartmedicine.co.uk.win11.mojsite.com/wp-admin/post.php?post=493&action=edit&lang=en
Regards,
Peter-
This reply was modified 11 years, 8 months ago by
Yigit.
August 14, 2014 at 4:35 pm #304458Hi!
I edited footer.php, from line 47 to line 53.
Regards,
JosueAugust 14, 2014 at 5:47 am #304183In reply to: Button – Remove background
Hi!
Thank you for the info.
Please use this on Quick CSS or custom.css:
.avia-button-wrap.avia-button-center.avia-builder-el-7.el_after_av_heading.avia-builder-el-last a.avia-button.avia-icon_select-no.avia-color-custom.avia-size-large.avia-position-center { background: transparent !important; border: 1px solid white !important; box-shadow: inset 0 0 10px white; }Another way to do that is to apply a unique css selector for the button or any advance layout builder 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 the button element then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “transparent-button”.
You can add something like this on your custom.css or Quick CSS:
.transparent-button a.avia-button { background: transparent !important; border: 1px solid white !important; box-shadow: inset 0 0 10px white; }Refer to this link for more info: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Regards,
IsmaelAugust 14, 2014 at 5:36 am #304177In reply to: gallery unable to select Images
Hi!
I hope this helps you with the issue. Please refer to this link for a possible fix: https://kriesi.at/support/topic/gallery-edit-issues/#post-277654
Regarding the max execution time error, try to add this line on the .htaccess file:
php_value max_execution_time 60Refer to this link for more info: http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded
Regards,
IsmaelAugust 14, 2014 at 5:30 am #304173In reply to: Contact form in pop-up (prettyPhoto issue)
Hey axelfx07!
Thank you for using Enfold.
The Enfold uses MagnificPopup as default lightbox plugin. You can add this on functions.php:
function popup_inline() { ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('.open-popup-link').magnificPopup({ type:'inline', midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href. }); }); </script> <?php } add_action('wp_head', 'popup_inline');Then use this on a text block:
<div id="test-popup" class="white-popup mfp-hide"> <p>PLACE CONTENT HERE</p> </div> <a class="open-popup-link" href="#test-popup">Show inline popup</a>Add this on Quick CSS or custom.css:
.white-popup { position: relative; background: #FFF; padding: 20px; width: auto; max-width: 500px; margin: 20px auto; }Remove browser cache then reload the page a few times.
Cheers!
Ismael -
This topic was modified 11 years, 7 months ago by
-
AuthorSearch Results
-
Search Results
-
Help!!!
After the latest update to Enfold version 2.9.1 the website is completely broken.
Getting the error message:
Fatal error: Call to undefined function avia_get_header_scroll_offset() in /home/deb62238/domains/intu-jewelry.nl/public_html/enfold/wp-content/themes/enfold/css/dynamic-css.php on line 772I have tried all solutions mentioned in the forum:
– manually updating the theme via ftp
– re-upload the wp-content/themes/enfold/functions-enfold.php file. It contains the function mentioned in the first post (avia_get_header_scroll_offset())
– overwriting all files via FTP once again
– switch to main theme first, then updating and switching back to child theme again afterNone of these worked!
The only solution that works is:
– manually overwrite wp-content/themes/enfold/css/dynamic-css.php with an old version (from months ago)
But … that is no good solution, since it will be overwritten with every new update of the theme…..Could anyone please help me out???
We are under immense pressure to go live asap!!!
Thanks very much!
Kind regards
ThijsHi,
I am updating the theme, I lost my setup ….After that go to includes folder and duplicate loop-page.php. Rename the duplicated file to loop-forum.php. Edit it and find this code
<div class=”<?php avia_layout_class(‘content’); ?> alpha units entry-content”>
Replace it with
<div class=”twelve alpha units entry-content”>
I do not have the line: <div class=”<?php avia_layout_class(‘content’); ?> alpha units entry-content”> in loop-page.php
I do not know what to do, everything was perfect before the update :(
thank you for your reply
Hi,
I have an idea and maybe you can help me.
I love masonry galleries but I’d like to display images FROM my facebook page albums.
I’ve found a plugin, Facebook Photo Fetcher, that is able to fetch photos from Facebook but its look is awful :)
In the plugin page (http://www.justin-klein.com/projects/facebook-photo-fetcher/) I’ve found this:
—
Albums from PHP
If you’ve got a custom template or widget in which you’d like to include a gallery, you can call the function fpf_fetch_album_content() directly. It accepts the same parameters as the HTML tags above; for example:
$album = fpf_fetch_album_content( ‘123456789’, array(‘cols’=>6, ‘max’=>18) );
echo $album[‘content’];
echo “Cover photo: ” . $album[‘cover’] . “, Photo Count: ” . $album[‘count’];
—
My answer: would it be possible to modify Masonry Gallery to use this function and display Facebook images? Would it be simple?
