Viewing 30 results - 14,461 through 14,490 (of 16,897 total)
  • Author
    Search Results
  • #420630

    This following code is wrong!!!!!

    /**
    * takes some text in shortcode format (eg: [avia_textblock]this is test[/avia_textblock]) and converts it to an editable element on
    * the AviaBuilder canvas. only executed at page load or when the editor is switched from default wordpress to avia builder
    */
    convertTextToInterface: function(text)
    {
    if(this.activeStatus.val() != “active”) return;

    this.body_container.addClass(‘avia-advanced-editor-enabled’);

    var obj = this, editor;

    if(typeof text == “undefined”)
    {
    text = this.secureContent.val(); //testdrive: val() to html()
    if(text.indexOf(‘[‘) === -1)
    {
    text = this.classic_textarea.val(); //testdrive: val() to html()
    if(this.tiny_active) text = window.switchEditors._wp_Nop(text);
    this.secureContent.val(text);
    }
    }

    // if(this.tiny_active) text = window.switchEditors._wp_Nop(text); // moved up 5 lines in order to fix this: https://github.com/AviaThemes/wp-themes/issues/573

    //sends the request. calls the the wp_ajax_avia_ajax_fetch_shortcode php function
    $.ajax({
    type: “POST”,
    url: ajaxurl,
    data:
    {
    action: ‘avia_ajax_text_to_interface’,
    text: text
    },
    success: function(response)
    {
    $(‘#content-tmce’).trigger(‘click’);
    obj.sendToAdvancedEditor(response);
    //obj.updateTextarea(); //dont update textarea on load, only when elements got edited
    obj.canvas.removeClass(‘preloading’);
    obj.do_history_snapshot();
    }
    });

    —————————–

    The line:
    text = this.secureContent.val(); //testdrive: val() to html()

    Should be:
    text = this.secureContent.html(); //testdrive: val() to html()

    I can see many val() to html() testdrive comments, but for sure this needs to be in html format for the POST operation.

    #420531

    Merhabalar!

    Iyiyim tesekkur ederim siz nasilsiniz? :)
    WPML forumunda paylastiklari bu eklentiyi kullaniyor musunuz – Woocommerce multilingual?
    Bu ekran goruntusu 2 yil oncesinin fakat secenekler hemen hemen ayni olsa gerek – https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/FireShot_Screen_Capture_017_WooCommerce_Multilingual_My_test_site_WordPress_test_loc_wp_admin_admin_php_page_wpml_wcml.png
    Urun cevirilerini bu eklenti uzerinden yapmaniz gerekiyormus ve “tab” sekmesi gorucekmissiniz ceviri yapmaniza olanak saglayan.
    Umarim faydali olur :)

    Cheers!
    Yigit

    #419912
    dmoravec
    Participant

    I am getting this strange white space above my content on page linked in the private content of this post. The page operates off a custom single.php that has one line changed – (line 37) reads as follows:

                            get_template_part( 'loop', 'reviews' );
    

    This change was made because I use the Views Plugin and utilize a custom post type /reviews/

    I don’t see that being the issue though, and I just can’t figure out why there is this odd white space. I

    • This topic was modified 11 years, 1 month ago by Yigit.
    #419698

    In reply to: wp-admin broken

    This reply has been marked as private.
    #419233

    hi in my child theme functions.php i have this code can you remind me what it is doing?

    function exclude_category($query) {
    if ( $query->is_home() )
    {
    $query->set(‘cat’, ‘-5 -7 -9’);
    }
    return $query;
    }

    add_filter(‘pre_get_posts’, ‘exclude_category’);

    #418982

    In reply to: WMPL whitout flags

    This reply has been marked as private.
    #418861

    Hi

    I don’t do Windows… So i fixed it with another tool… Diffmerge, free for Win, Mac and Linux (http://www.sourcegear.com/diffmerge/downloads.php)

    For example you have added a line of code in template-builder.php (74 – echo avia_sc_section::$close_overlay;)

    In the prior versions like 3.0 i the versions.txt you always wrote what files you changed, much easier for all you users then have to compare all files sizes etc.

    Please do as you did before :/

    #418666

    Hey markzarak!

    1 & 4- Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .avia-no-number {
      opacity: 1;
    }
    #top #wrap_all .av-social-link-mail:hover a {
      background-color: #d73119!important;
    }

    2- Please add following code to Functions.php file in Appearance > Editor

    function transparent_header_scroll(){
    ?>
    <script>
    jQuery(window).scroll(function(){
    if(jQuery(this).scrollTop() < 200) jQuery('#header_meta').toggle();
    if(jQuery(this).scrollTop() > 200) jQuery('#header_meta').toggle();
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'transparent_header_scroll');

    3- Not sure if i understood you correctly. Can you please elaborate?

    Please make sure to disable CSS minifying feature before applying the changes and flush browser cache after

    Best regards,
    Yigit

    webdesignphx
    Participant

    Hi Kriesi,
    Instead of the menu page I get this:
    I reinstalled a new download of enfold over http://ftp.. still not working.
    Please help.
    Martina

    tribe_events_cat Column (Mega Menu) ↑ | ↓ Edit Menu Item
    Navigation Label Mega Menu Column Title (if you dont want to display a title just enter a single dash: “-” )

    Title Attribute

    link Target

    CSS Classes (optional)

    link Relationship (XFN)

    Description

    Menu Style

    Use as Mega Menu

    This column should start a new row

    Use the description to create a Text Block. Dont display this item as a link. (note: dont remove the label text, otherwise wordpress will delete the item)

    Catchable fatal error: Object of class WP_Error could not be converted to string in /usr/www/users/hosting/juliebourque/wp-includes/formatting.php on line 721

    #418565

    Hi!

    For the translations I don’t think you can use special characters in there by default. I found some topics about this.

    https://wordpress.org/support/topic/keeping-special-characters-in-migrated-permalinks-without-causing-a-404.
    http://wordpress.stackexchange.com/questions/33799/problem-with-special-character-wordpress
    http://forum.bytesforall.com/showthread.php?t=1120

    Since it’s not really a theme issue I would try posting this in the WordPress support forums to see if anyone has found a workaround for that.

    Cheers!
    Elliott

    #418048

    Hello Yigit,
    looks very nice now :-)

    I have two litte questions now. When there is a new update for Enfold. than it overwrites the edited slideshow.php
    Is it possible to include this in my Child theme that i must not change this line after every Update?

    ———————————————-

    On other Topic i post that the scroll up button does not show on iphone.
    You postet this code:

    @media only screen and (max-width: 767px) {
    .responsive #scroll-top-link {
      display: block!important;
    }}

    But this does not work. Can u look why this is not show on iphone?

    • This reply was modified 11 years, 1 month ago by Dandy.
    #417917
    Coco
    Participant

    Hallo Entwickler,

    gibt es eine gute Methode soetwas mit dem Avia Layout Architekt nachzubauen.
    Wichtig ist dabei, dass der Text als Blocksatz erscheint.


    http://www.bilder-upload.eu/show.php?file=2d0b18-1427296028.png

    Die Größe der einzelnen Hintergrundboxen sollte unabhängig von der
    Textlänge fixierbar sein. (Alle gleich)

    Habe trotz intesiven Ausprobieren kein geeignetes Werkzeug gefunden.

    Dank & Gruß
    Coco

    • This topic was modified 11 years, 1 month ago by Andy.
    #417909

    In reply to: Problems with WP 4.1

    This reply has been marked as private.
    #417903
    #417813
    blubbline
    Participant

    Hi!
    Ich wollte gerade unsere website abrufen und bekomme diesen error angezeigt:
    Fatal error: Cannot redeclare yoursite_pre_user_query() (previously declared in /data/web/e28374/html/apps/wordpress-6506/wp-content/themes/enfold-child/functions.php:117) in /data/web/e28374/html/apps/wordpress-6506/wp-content/themes/enfold/functions.php on line 505

    Weder die webseite noch der WP admin ist aufzurufen.
    Ist es moeglich dass dieser fehlercode durch ein Update verursacht wurde?

    Was kann ich tun um wieder zugriff zu bekommen? Ich bin total ratlos :-(

    Ich hoffe ihr koennt mir helfen..

    Ganz lieben Dank!!!!

    Juliane

    #417741
    mediabelgium
    Participant

    Hi,
    A while ago, I was looking for a solution on the portfolio navigation (#390736 – the ‘next button’ of the last entry pointed to the previous entry instead of the very first entry).
    The problem was solved by adding code to the functions.php file. The next/previous buttons are doing their job, but in the footer of the website, some code about the previous portfolio item is shown.
    You can see an example on http://mediabelgium.be/projecten/cook-experience/

    #417712
    1979mark
    Participant

    Hi guys,

    since update i have a lot of memory trouble by save an edited site.

    Fatal error: Out of memory (allocated 127401984) (tried to allocate 7950069 bytes) in /homepages/44/d42482686/htdocs/website/wp-includes/wp-db.php on line 1114

    What should i do.
    I tried also to deactivate all plugin. The same problem.

    #417622

    Hi Joshua,

    Thanks for your respond! I inserted the code in the functions.php.

    The only thing that happens is that on this page : http://kunstenkrachtig.nl/dehooplievaart/?page_id=70
    the title jumps back below the preview image.

    I don’t think anything changed here: http://kunstenkrachtig.nl/dehooplievaart/?p=268

    Regards,

    Pieterjan

    #417520

    Hi,

    Try adding this at the very end of your theme / child theme functions.php file:

    function custom_img_position_script(){
    	if(is_singular('post')){
    		?>
    		<script>
    		(function($){
    		    $(window).load(function() {
    		    	$('.entry-content-header').before($('.big-preview.single-big').detach());
    		    });
    		})(jQuery);
    		</script>
    		<?php
    	}else if(is_page('70')){
    		?>
    		<script>
    		(function($){
    		    $(window).load(function() {
    		    	$('.entry-content-header').each(function(){
    		    		$(this).before($(this).next('.big-preview.single-big').detach());
    		    	});
    		    });
    		})(jQuery);
    		</script>
    		<?php
    	}else{
    
    	}
    }
    add_action('wp_footer', 'custom_img_position_script');

    Regards,
    Josue

    #417476

    Hola Lidia,

    Copia esto al functions.php de tu child theme:

    function avia_post_nav($same_category = true, $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'] = true;
    
    	$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;
    }

    Saludos,
    Josue

    #417189
    This reply has been marked as private.
    #417164

    Your code broke our site, I added our Google Adsense code between the ” ” to functions.php as you instructed

    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= “<script type=”text/javascript”>
    google_ad_client = “ca-pub-26333453226”;
    google_ad_slot = “2017817757”;
    google_ad_width = 320;
    google_ad_height = 50;
    </script>
    <!– photoshopcs6 mobile home bottom –>
    <script type=”text/javascript”
    src=”//pagead2.googlesyndication.com/pagead/show_ads.js”>
    </script>”;
    return $sub;
    }

    • This reply was modified 11 years, 1 month ago by vegaspro.
    #417081
    WP Turned UP
    Participant

    Hello. I have an element I’m adding to Enfold, using HTML, CSS and some custom JavaScript. I have everything but the JS in place and working. My site is still in local development.

    How would I go about adding the following JS to the Enfold Child theme? Right now, the child theme Functions.php is at it’s defaults.

    var svg = document.getElementById(‘menu’),
    items = svg.querySelectorAll(‘.item’),
    trigger = document.getElementById(‘trigger’),
    label = trigger.querySelectorAll(‘#label’)[0],
    open = true,
    angle = 45;

    //set up event handler
    trigger.addEventListener(‘click’, toggleMenu, false);
    // svg.style.pointerEvents = “none”;

    //toggle menu when trigger is clicked
    function toggleMenu(event) {
    if (!event) var event = window.event;
    event.stopPropagation();
    open = !open;
    if (open) {
    var tl = new TimelineLite();
    tl.to(items, 0.2, {scale:1, ease:Back.easeOut.config(4)}, 0.05);
    for(var i=0; i<items.length; i++){
    tl.to(items[i], 0.7, {rotation:-i*angle + “deg”, ease:Bounce.easeOut}, 0.35);
    }
    label.innerHTML = “-“;
    svg.style.pointerEvents = “auto”;
    } else {
    var tl = new TimelineLite();
    for(var i=0; i<items.length; i++){
    tl.to(items[i], 0.3, {rotation: 0, ease:Circ.easeOut}, 0.05);
    }
    tl.to(items, .3, {scale:0, ease:Back.easeIn}, 0.3);
    label.innerHTML = “+”;
    svg.style.pointerEvents = “none”;
    }

    }

    svg.onclick = function (e) {
    e.stopPropagation();
    }
    //close the nav when document is clicked
    document.onclick = function () {
    open = false;
    var tl = new TimelineLite();
    for(var i=0; i<items.length; i++){
    tl.to(items[i], 0.3, {rotation: 0, ease:Circ.easeOut}, 0.05);
    }
    tl.to(items, .3, {scale:0, ease:Back.easeIn}, 0.3);
    label.innerHTML = “+”;
    svg.style.pointerEvents = “none”;
    };

    Thank you,
    Ryan

    • This topic was modified 11 years, 1 month ago by WP Turned UP.

    Hi Ismael,

    I’ve removed all plugins apart from WooCommerce Version 2.3.7 and the issue is still present. Enfold is on 3.1.1

    I am running a child theme but have removed all css (kept the minimum required to run a child theme) and have removed all php coding but it is still present.

    #416959

    I have added custom fonts in my theme functions.php
    Now i uploaded a child theme file.
    I want to move the code from main file to child functions.php how can it be done?

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Titillium Web'] = 'Titillium Web:300,600,400,700';
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Titillium Web'] = 'Titillium Web:300,600,400,700';
    $fonts['Rokkitt'] = 'Rokkitt:400,700';
    return $fonts;
    }
    #416694

    Hey elliotstiller!

    This has to do with your server PHP settings. Here is a video on how to change it, https://www.youtube.com/watch?v=_K7Z3SzVAIo.

    Best regards,
    Elliott

    #416545

    In reply to: Accordion Slider Size

    Hey booksndigital!

    Try opening up /enfold/config-templatebuilder/avia-template-builder/php/generic-helper.class.php and change line 97 from this.

    if(!empty($exclude_default)) unset($image_sizes['no scaling']);
    

    To this.

    //if(!empty($exclude_default)) unset($image_sizes['no scaling']);
    

    You should now be able to select “No scaling” in the image sizes and crop your images manually before uploading.

    Regards,
    Elliott

    #416443

    Great, this works!

    By the way, the code I changed/added is this:

    masonry_entries.php, from line 770:

    							case 'video' :
    								if(!$this->loop[$key]['thumb_ID']) 
    								{
    									preg_match_all('#\bhttps?://[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#', $entry->post_content, $match);
    									foreach($match[0] as $test_url){
    										if($this->loop[$key]['video_image_url']=video_get_image_url ($test_url))
    											break;
    									}
    									if($this->loop[$key]['video_image_url']=="")
    											$this->loop[$key]['text_before'] = av_icon_display($post_format);
    								}
    								else
    									$this->loop[$key]['text_before'] = av_icon_display($post_format, 'av-masonry-media');
    								break;

    …and line 863:

    				//get attachment data
    				$this->loop[$key]['attachment'] = !empty($this->loop[$key]['thumb_ID']) ? wp_get_attachment_image_src($this->loop[$key]['thumb_ID'], $img_size) : array($this->loop[$key]['video_image_url']);

    and in functions.php this function:

    // Video-URL
    function video_get_image_url($url,$size="thumbnail_large"){
    	$image_src = parse_url($url);
    	if($image_src['host'] == 'www.vimeo.com' || $image_src['host'] == 'vimeo.com' || $image_src['host'] == 'player.vimeo.com'){
    		parse_str($image_src['query'], $query);
    		if(isset($query['clip_id']) && $query['clip_id'] != ""){
    			$id = $query['clip_id'];
    		} else {
    			$path = explode("/",$image_src['path']);
    			$id = $path[(count($path)-1)];
    		}
    		if(function_exists('curl_init')){;
    			$ch = curl_init();
    			curl_setopt($ch, CURLOPT_URL, "http://vimeo.com/api/v2/video/$id.php");
    			curl_setopt($ch, CURLOPT_HEADER, 0);
    			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    			curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    			$output = unserialize(curl_exec($ch));
    			$output = $output[0][$size];
    			curl_close($ch);
    			return $output;	
    		}
    	}
    	else if($image_src['host'] == 'www.youtube.com' || $image_src['host'] == 'youtube.com'){
    		parse_str($image_src['query'], $query);
    		if(isset($query['v']) && $query['v'] != ""){
    			$id = $query['v'];
    		} else {
    			$path = explode("/",$image_src['path']);
    			$id = $path[count($path)-1];
    		}
    		if($size=="thumbnail_large")
    			return "http://img.youtube.com/vi/".$id."/0.jpg";				
    		else
    			return "http://img.youtube.com/vi/".$id."/default.jpg";				
    	} else{
    		return false;
    	}
    }
    

    Voilá – now every post content of type “video” in the masonry automagically displays the cover image of the first video of the post instead of only the video icon. Wouldn’t this feature be nice for a future enfold update? :-)

    This reply has been marked as private.
    #416194

    Hey!

    I can’t see OpenSans being loaded anywhere on your site, could you provide us with a screenshot? http://tools.pingdom.com/fpt/#!/lTcta/http://andreas-achatz.de/hof/

    What I do see is Roboto being loaded, if you want to remove it please edit your header.php file, look for this line:

    <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
    

    Cheers!
    Rikard

Viewing 30 results - 14,461 through 14,490 (of 16,897 total)