-
Search Results
-
Hello,
I am creating some custom shortcodes for the enfold theme. I mostly have them working, but I am not an expert with php, so most of my work has been trial and error / copy and paste from other shortcodes.
For this shortcode, I am basically taking the image shortcode and adding a title to it. Everything displays fine on the front end, but there is a weird bug I can’t quite figure out. Let me explain:
When I first click edit page, I see the element as I intend in the Advanced Layout Builder. Once I click to edit the element and click save, the layout changes. I lose the title, and two images appear stacked on top of each other.
Before on the left, after on the right:
I am guessing it is something to do with the code in the Editor Element Section, here is my code from that section:
function editor_element($params) { $template = $this->update_template("src", "<img src='{{src}}' alt=''/>"); $img = ""; if(isset($params['args']['src']) && is_numeric($params['args']['src'])) { $img = wp_get_attachment_image($params['args']['src'],'large'); } else if(!empty($params['args']['src'])) { $img = "<img src='".$params['args']['src']."' alt='' />"; } $params['content'] = NULL; $params['innerHtml'] = "<div class='avia_photo_nav_square avia_photo_nav_square_style avia_hidden_bg_box'>"; $params['innerHtml'] .= "<div ".$this->class_by_arguments('align' ,$params['args']).">"; $params['innerHtml'] .= " <span {$template} >".$params['args']['title'].": </span>"; $params['innerHtml'] .= "<div class='avia_photo_nav_square_container' {$template}>{$img}</div>"; $params['innerHtml'] .= "</div>"; $params['innerHtml'] .= "</div>"; $params['class'] = ""; return $params; }Thanks for any help you can provide!
D
Topic: Form keeps loading
Hi there,
I have got a problem which i cannot solve.
I use layerslider WP which comes with the theme.
However, when i add a form, layerslider keeps loading. This form is of real essence to us, so could you guys please have a look at this problem?You can find the slider here: http://www.netwerkhoreca.nl
In the source code you will find this piece:<form class=”moonray-form-clearfix” action=”https://forms.moon-ray.com/v2.4/form_processor.php?” method=”post” accept-charset=”UTF-8″ >
<div class=”moonray-form-element-wrapper moonray-form-element-wrapper-alignment-left moonray-form-input-type-text”><input name=”firstname” class=”mdpinput” type=”text” id=”mr-field-element-388095748240″ required value=”” placeholder=”Llena tu nombre aquí…..”/></div>
<div class=”moonray-form-element-wrapper moonray-form-element-wrapper-alignment-left moonray-form-input-type-text”><input name=”email” class=”mdpinput” type=”text” id=”mr-field-element-506255636839″ required value=”” placeholder=”Llena tu email aquí…..”/></div>
<div class=”moonray-form-element-wrapper moonray-form-element-wrapper-alignment-center moonray-form-input-type-submit”><input type=”submit” name=”submit-button” value=”Acceso gratuito inmediato” class=”mdpsubmit” id=”mr-field-element-28403787408″ data-lastDisplayVal=”http://www1.moon-ray.com/pub_designer_files/images/1334032139.png” src/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”afft_” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”aff_” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”sess_” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”ref_” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”own_” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”oprid” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”contact_id” type=”hidden” value=””/></div>
<div class=”moonray-form-element-wrapper moonray-form-input-type-hidden”><input name=”uid” type=”hidden” value=”p2c9239f23″/></div>
</form>The piece of code above causes the problem.
To be more precise, when i strip it down it seems that this line is causing the problem:
<div class=”moonray-form-element-wrapper moonray-form-element-wrapper-alignment-center moonray-form-input-type-submit”><input type=”submit” name=”submit-button” value=”Acceso gratuito inmediato” class=”mdpsubmit” id=”mr-field-element-28403787408″ data-lastDisplayVal=”http://www1.moon-ray.com/pub_designer_files/images/1334032139.png” src/></div>If i only add this line the problem is also there.
Could you guys please help?
Topic: Enfold > fatal error
Hey guys,
Followed this instruction https://kriesi.at/support/topic/need-to-use-all-weights-of-the-open-sans-font-e-g-bold800/ to attempt to make more font weight options for open sans. Instead I am now getting
Fatal error: Call to undefined function avia_header_setting() in /home/codeless/public_html/bunnndle.com/wp-content/themes/enfold/header.php on line 7Copied the code exactly.
Topic: Layout builder doesn't work
I can’t create or edit certain elements with the layout builder on either 1.7 or 2.4.1 of this theme. The problem has been apparent since the first version I used (1.0) but was intermittent in earlier versions.
It’s now completely unusable with the color section element – if I add a text box or even a rule to this element it gets removed when I update the page. I am not able to change the version of PHP on the server (5.3.26 CGI/FastCGI).
Topic: Single-portfolio
Hallo,
ich möchte gerne das single-portfolio php als Standard zur Ansicht der Portfolio-Items einsetzen, da ich sehr viele Einträge habe. Wo gibt es denn die Möglichkeit die Darstellung zu ändern? Im Moment stellt er einfach ein Bild dar in einer beliebigen Größe (710x 270), das entspricht weder der Originalgröße noch einer propotionalen Skalierung. Es wird auch kein Titel/Excerpt angezeigt. Habt ihr einen Hinweis.
Danke und Gruß
Topic: Single-portfolio.php
Hallo,
ich möchte gerne das single-portfolio.php als Standard zur Ansicht der Portfolio-Items einsetzen, da ich sehr viele Einträge habe. Wo gibt es denn die Möglichkeit die Darstellung zu ändern? Im Moment stellt er einfach ein Bild dar in einer beliebigen Größe (710x 270), das entspricht weder der Originalgröße noch einer propotionalen Skalierung. Es wird auch kein Titel/Excerpt angezeigt. Habt ihr einen Hinweis.
Danke und Gruß
Just upgraded to Enfold Verson 2.4 and latest Woocommerce and am getting the following error on top of my Avia builder:
Warning: include_once(woocommerce-ajax.php) [function.include-once]: failed to open stream: No such file or directory in /nfs/c06/h02/mnt/93688/domains/mywellspringhealth.com/html/wp-content/plugins/woocommerce/woocommerce.php on line 348 Warning: include_once() [function.include]: Failed opening 'woocommerce-ajax.php' for inclusion (include_path='.:/usr/local/php-5.3.27/share/pear') in /nfs/c06/h02/mnt/93688/domains/mywellspringhealth.com/html/wp-content/plugins/woocommerce/woocommerce.php on line 348 Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h02/mnt/93688/domains/mywellspringhealth.com/html/wp-content/plugins/woocommerce/woocommerce.php:348) in /nfs/c06/h02/mnt/93688/domains/mywellspringhealth.com/html/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63 editxClone Elementreference for where this is coming from.
http://www.blastam.com/blog/index.php/2013/03/how-to-track-downloads-in-google-analytics-v2/
Hey guys this may be above tech support, but maybe not for you gurus. What I want to do is track outbound links, and download actions and such with my google analytics account. I found this script above that automates the process but I am not quite sure how to add a js script to the enfold theme. What I did was simply add the new script below my google analytics script in the child them backend. when I inspect a page I see the script referenced in the head after my normal google analytics script and if I am reading right you guys are referencing a newer jquery library than this needs. you have 1.10.2 or something. Can you look at my site and see if you know why this might not be working. my site is http://www.jackandaddi.comthe documentation is straight forward. just be sure to include the jQuery library reference in your section before the call to the tracking code. example <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js” type=”text/javascript”></script>
For those who have a lot of links and would like to dynamically detect clicks on links to file downloads, we have provided updated code below. As before, this code requires the jQuery JavaScript library to be set before the code. It can be placed in its own .js file and should be placed in the <head> of your pages.
<script type="text/javascript"> if (typeof jQuery != 'undefined') { jQuery(document).ready(function($) { var filetypes = /\.(zip|exe|dmg|pdf|doc.*|xls.*|ppt.*|mp3|txt|rar|wma|mov|avi|wmv|flv|wav)$/i; var baseHref = ''; if (jQuery('base').attr('href') != undefined) baseHref = jQuery('base').attr('href'); jQuery('a').on('click', function(event) { var el = jQuery(this); var track = true; var href = (typeof(el.attr('href')) != 'undefined' ) ? el.attr('href') :""; var isThisDomain = href.match(document.domain.split('.').reverse()[1] + '.' + document.domain.split('.').reverse()[0]); if (!href.match(/^javascript:/i)) { var elEv = []; elEv.value=0, elEv.non_i=false; if (href.match(/^mailto\:/i)) { elEv.category = "email"; elEv.action = "click"; elEv.label = href.replace(/^mailto\:/i, ''); elEv.loc = href; } else if (href.match(filetypes)) { var extension = (/[.]/.exec(href)) ? /[^.]+$/.exec(href) : undefined; elEv.category = "download"; elEv.action = "click-" + extension[0]; elEv.label = href.replace(/ /g,"-"); elEv.loc = baseHref + href; } else if (href.match(/^https?\:/i) && !isThisDomain) { elEv.category = "external"; elEv.action = "click"; elEv.label = href.replace(/^https?\:\/\//i, ''); elEv.non_i = true; elEv.loc = href; } else if (href.match(/^tel\:/i)) { elEv.category = "telephone"; elEv.action = "click"; elEv.label = href.replace(/^tel\:/i, ''); elEv.loc = href; } else track = false; if (track) { _gaq.push(['_trackEvent', elEv.category.toLowerCase(), elEv.action.toLowerCase(), elEv.label.toLowerCase(), elEv.value, elEv.non_i]); if ( el.attr('target') == undefined || el.attr('target').toLowerCase() != '_blank') { setTimeout(function() { location.href = elEv.loc; }, 400); return false; } } } }); }); } </script>Warning: session_start() [function.session-start]: open(/tmp/sess_0aa8aed9c9dcabd4cca3e3b9ef69a99f, O_RDWR) failed: Permission denied (13) in /home/vrsveric/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27
I only get this message on your theme. I have installed plenty of sites with no problem. I even kept this configuration and changed the theme to avada…no errors. It has nothing to do with the install or tmp folders permission. It has everything to do with this theme. Just type the title of this topic into Google and see how many sites come up with this error. It happens and then clears itself, and then it happens again. It’s off an on. If I clear the cache it works and then comes right back. You need to look in to this.I can’t move forward on the projects with this problem.
Your old version on the seam server work fine.
Version 1.7 on wp 3.5.2 works fine
Version 2.0.1 on wp 3.6.1 fails
Version 2.4 on wp 3.6.1 failsI can email you the production site if you want.
Topic: Error on install
Hi I’m getting warning errors on install (this appears on site, not in WP backend):
Warning: session_start() [function.session-start]: open(/home/content/80/2989780/tmp/sess_cji59mln14amh2b31q9sue6kb7, O_RDWR) failed: No such file or directory (2) in /home/content/80/2989780/html/mlsdex/wp-content/themes/mlsdex/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/content/80/2989780/html/mlsdex/wp-content/themes/mlsdex/config-templatebuilder/avia-shortcodes/masonry_entries.php:33) in /home/content/80/2989780/html/mlsdex/wp-content/themes/mlsdex/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/80/2989780/html/mlsdex/wp-content/themes/mlsdex/config-templatebuilder/avia-shortcodes/masonry_entries.php:33) in /home/content/80/2989780/html/mlsdex/wp-content/themes/mlsdex/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33
If you can let me know what is going on that would be great.
Thanks much,
Chris
Topic: No dashboard or homepage
Hi,
I might be barking up the wrong tree but since installing Enfold my site won’t load. I have tried resetting all the plugins and holding the theme, but whatever I try, I just can’t get it running again.
I am getting this kind of error in the log:
PHP Fatal error: Out of memory (allocated 44826624) (tried to allocate 14592 bytes) in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-admin/includes/image.php on line 147
PHP Fatal error: Out of memory (allocated 44826624) (tried to allocate 10944 bytes) in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-admin/includes/image.php on line 147
PHP Fatal error: Out of memory (allocated 44826624) (tried to allocate 10944 bytes) in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-admin/includes/image.php on line 147
PHP Fatal error: Out of memory (allocated 44826624) (tried to allocate 10944 bytes) in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-admin/includes/image.php on line 147And
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query SELECT rating_username, rating_rating, rating_ip FROM wp_ratings WHERE rating_postid = made by require, require_once, include, the_post, WP_Query->the_post, do_action_ref_array, call_user_func_array, get_comment_authors_ratings
PHP Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘_show_post_preview’ was given in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-includes/plugin.php on line 311
PHP Fatal error: Call to undefined function is_sticky() in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-admin/edit-form-advanced.php on line 157
PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0
PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0
PHP Warning: Division by zero in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-content/plugins/nextgen-gallery/lib/gd.thumbnailPHP Warning: Division by zero in /content/HostingPlus/b/o/bowlandwalks.co.uk/web/wp-content/plugins/nextgen-gallery/lib/gd.thumbnail.inc.php on line 760
I’ve been on WP Support but no found no solution, so just trying this as a last resort before giving up. If anyone can give me any advice I will be eternally grateful.
Thanks, Tim



