Viewing 30 results - 15,001 through 15,030 (of 16,896 total)
  • Author
    Search Results
  • #350562
    mediasauce
    Participant

    Hello!

    I am having an issue where users can no longer post new topics inside my forums.

    I am getting the following error when posting:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/nspt4kids/public_html/wp-includes/link-template.php on line 214

    Any ideas on how to resolve for a non-developer?

    thanks!

    #350539

    In reply to: adding custom fields

    Hi there,

    I have copied the file loop-index.php to the child theme folder added the following code and it does not work – nothing is displayed:

    echo get_post_meta( $the_id, 'key', true );

    I have 4 custom fields in each language. I need to display them in a specific order under the post title on all pages where t=posts are (eg. blog roll, single post, specific category/tag post)

    Below is the code I used in twenty ten a couple of years ago. It illustrates the principle:

    <div class="pprow">
    		<?php $myid = $post->ID; // Assign this using a variable, or however you were before, eg. $post->ID
    
    		$data = $wpdb->get_results("
    		SELECT * FROM $wpdb->postmeta WHERE post_id = $myid
    		AND meta_key NOT LIKE '\_%'
    		ORDER by (CASE WHEN meta_key = 'Composed in' THEN 0
    				WHEN meta_key = 'Duration' THEN 1
    	       			WHEN meta_key = 'Instrumentation' THEN 2
    	       			WHEN meta_key = 'Movements' THEN 3 
    	       			WHEN meta_key = 'Rok' THEN 4
    	       			WHEN meta_key = 'Czas' THEN 5
    	       			WHEN meta_key = 'Instrumentacja' THEN 6
    	       			WHEN meta_key = 'Części utworu' THEN 7 END)
    		"); // meta_key ASC - assign the field to sort e.g. meta_id, meta_key, etc. or specify order using CASE WHEN
    
    		if( !empty( $data ) ) {
    			foreach( $data as $result_object ) {
    				print '<div class="ppmeta-key">';
    				print $result_object->meta_key;
    				print ': ';
    				print '</div><div class="ppmeta-value">';
    				print $result_object->meta_value;
    				print '</div>';
    				print '<br />';
    							}
    					}
    		?>	
    		</div>

    Can you please advise how to implement it in Enfold?

    Many thanks,
    Peter

    • This reply was modified 11 years, 5 months ago by TheElear.
    #350503
    andrassberlin
    Participant

    Hey there,
    Following this: Post, I tried to create a login / logout button in main-menu. This code I have integrated this code at the end of the functions.php:

    function add_login_logout_link($items, $args)
    {
    if(is_user_logged_in() && $args->theme_location == 'avia')
    {
    $newitems = $items;
    $newitems .= '<li><a title="'.__('Logout','avia_framework').'" href="'. wp_logout_url(get_permalink()) .'">'.__('Logout','avia_framework').'</a></li>';
    }
    else if($args->theme_location == 'avia')
    {
    $newitems = $items;
    $newitems .= '<li><a title="'.__('Login','avia_framework').'" href="'. wp_login_url(get_permalink()) .'">'.__('Login','avia_framework').'</a></li>';
    }else{
    $newitems .= $items;
    }
    return $newitems;
    }
    add_filter('wp_nav_menu_items', 'add_login_logout_link', 5, 2);
    

    The link will appear just fine. But how I can create a button styled like “Button-Style (Colored)” in avia builder?
    I tried to style himself, but without success.
    Thanks for your help!

    • This topic was modified 11 years, 5 months ago by andrassberlin.
    #350397

    Hi!

    Google can still see them even if they are hidden with CSS so you’ll need to remove them from the source code. You can find them in the following places.

    1. /enfold/includes/loop-index.php on line 137.
    2. /enfold/includes/loop-author.php on line 75.
    3. /enfold/includes/loop-search.php on line 39.
    4. /enfold/config-templatebuilder/avia-shortcodes/masonry-entries.php on line 705.

    The line your looking for will look something like this.

    echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
    

    You’ll want to comment that out or delete it from each file.

    Best regards,
    Elliott

    • This reply was modified 11 years, 5 months ago by Elliott.

    Hey Morticka!

    1. Do you want to reduce the height but leave the width alone? We can do that with CSS but it may make your image look distorted.

    2. Open up /enfold/includes/loop-index.php and move lines 90 – 95.

    //echo preview image
    if(strpos($blog_style, 'big') !== false)
    {
    	if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    	if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>';
    }
    

    Down to line 187.

    Best regards,
    Elliott

    #350137

    Hey user877!

    Try adding this to the bottom of your /enfold/functions.php file.

    add_action( 'woocommerce_before_single_product', 'enfold_customization_product_description' );
    function enfold_customization_product_description() {
    	echo the_content();
    }
    add_filter( 'woocommerce_product_tabs', 'enfold_customization_remove_description_tab', 98 );
    function enfold_customization_remove_description_tab($tabs) {
    	unset($tabs['description']);
    	return $tabs;
    }

    That will remove the description tab and add it above everything else.

    Best regards,
    Elliott

    #350040

    Hey!

    1- Please check trash and make sure that there is not another page with same permalink
    2- Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_page(447) )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #349776
    Netzie
    Participant

    Hi,
    Some new in debug.log – Never seen before?
    Here is the error:

    [08-Nov-2014 01:09:17 UTC] PHP Notice:  has_cap blev kaldt med et argument der har været <strong>udfaset</strong> siden version 2.0! Brug af brugerniveauer i forbindelse med plugins og temaer er udfaset. Brug roller og rettigheder i stedet. in bizdoktor.dk/blog/wp-includes/functions.php on line 3318
    [08-Nov-2014 01:09:18 UTC] PHP Notice:  Undefined index: index in bizdoktor.dk/blog/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize.php on line 692
    [08-Nov-2014 01:09:18 UTC] PHP Notice:  Undefined index: index in bizdoktor.dk/blog/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize.php on line 695

    The error is in Danish … A quick translate:
    has_cap was called with an argument that has been faced out since ver. 2.0 Use of userlevels in connection with plugins and themes is obsolete Use roles and rights instead. In folder...
    First one… maybe not from “Enfold”?
    But the undefined index… is :)

    Please advise

    Peter

    • This topic was modified 11 years, 5 months ago by Netzie.
    #349626

    Hi StuWeTueHo!

    Try opening up /enfold/includes/loop-index.php and find line 79.

    $featured_img_desc = the_title_attribute('echo=0');
    

    And change it to this.

    $desc = get_post( get_post_thumbnail_id() ) -> post_excerpt;
    $featured_img_desc = ( $desc != null ) ? $desc : the_title_attribute( 'echo=0' );
    

    And then click on your featured image when editing your post and insert some text into the caption setting and save.
    Regards,
    Elliott

    • This reply was modified 11 years, 5 months ago by Elliott.
    #349388

    In reply to: Custom category image

    Hello Ismael,

    I’m not suer If I get you right. In parent theme version of functions.php is the mentioned code on line 16. So I moved it up on line 5 right under the:
    global $avia_config;
    No no change whatsoever.

    In child theme, there is absolutely nothing around line 17 (there is some commented function I’ve been trying earlyer for favicon).
    So where should I transfer which code please O:-)?

    Btw the battle is real, it’s the biggest and coolest medieval event here :).

    Thanks and looking forward to hearing from you
    Mathy

    #349242
    This reply has been marked as private.
    #349081

    Hey bicounet!

    Try adding this to the functions.php file of your child theme.

    function avia_post_nav($same_category = false, $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>";
    	}
    	if ( !in_category( array( 'uncategorized', 'work', 'humor' ) ) ) { return $output; }
    }
    

    And near the bottom of that code you should see this.

    if ( !in_category( array( 'uncategorized', 'work', 'humor' ) ) ) { return $output; }
    

    You can add your category slugs there.

    Or if you do not want to use a child theme then you can find that line on 393 in /enfold/functions-enfold.php.

    Cheers!
    Elliott

    • This reply was modified 11 years, 5 months ago by Elliott.
    #349045

    Hey!

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

    add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
    
    function avia_replace_standard_icon($icons)
    {
    $icons['standard']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue915');
    return $icons;
    }

    Change ue915 by the icon you want to use, to check the codes for the available icons simply create a new Icon element and hover the icon of your preference – http://i.imgur.com/oSBFalI.png

    To import custom icons fonts, follow this guide – https://vimeo.com/75743285

    Cheers!
    Josue

    #349017

    Hi Josue,
    You are the king!!
    One final question…
    I have a contact form in the footer…
    So If I am on my contact page and the first form is CONTACT
    and the second form is FOOTER-CONTACT
    How do I assign a name to each button to track wish one was clicked?

    And If I use the scripts you made for function.php what happens when the footer-contact form is submitted from a page that are not in the array
    I assume that the array can be a series like:
    if(is_page(array(23,35,105,274)) {
    Or would it be better to load the script on every page (if so.. what do I leave out?)

    Best regards

    Peter

    #348762

    In reply to: WPML

    This reply has been marked as private.
    This reply has been marked as private.
    #348620

    Hi!

    The tripadvisor icon is not available on the fontello icon set. Add this on line 17 of functions.php:

    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['Trip Advisor'] = 'tripadvisor';
    return $icons;
    }

    Add the trip advisor icon on Enfold > Social Profiles panel. Use this on Quick CSS:

    li.social_bookmarks_tripadvisor {
    background: url('IMAGE ICON URI HERE');
    background-position: center center;
    background-repeat: no-repeat;
    }

    Use your own tripadvisor icon image on the value of the css background property.

    Best regards,
    Ismael

    #348566
    This reply has been marked as private.

    Hi!

    There are thousands of Enfold users and only few reported performance issues. Honestly, this is a complex topic and should be dealt with outside the support forum. All we can do is provide basic / generic guidelines regarding website optimization. What is the current PHP version? Another user who seems to have the same issue ssomehow fix it by upgrading PHP:
    https://kriesi.at/support/topic/avia-layout-builder-not-loading/#post-137892

    And searching for any related issue regarding the mod_fcgid error and I found this on top which seems to be a GoDaddy related issue: http://www.howtoforge.com/forums/archive/index.php/t-56003.html

    Anyway, we’re seeing errors on the site that are not theme related:

    Notice: Trying to get property of non-object in /home/content/22/4189422/html/momo/wp-includes/nav-menu.php on line 665

    Notice: Trying to get property of non-object in /home/content/22/4189422/html/momo/wp-includes/nav-menu.php on line 665

    Notice: Trying to get property of non-object in /home/content/22/4189422/html/momo/wp-includes/nav-menu.php on line 665

    Notice: Trying to get property of non-object in /home/content/22/4189422/html/momo/wp-includes/post.php on line 4373

    Please post the login details here and set it as a private reply. We would like to check it.

    Best regards,
    Ismael

    #348519

    Hey!

    Please check the Spam folder (i got the messages there). The form functionality is built with PHP but it uses the server capability to send mails.

    Also, just to discard if the issue is really coming from the theme form, try setting-up a test form with this plugin and perform another test.

    Cheers!
    Josue

    #348505
    This reply has been marked as private.
    #348444

    Topic: Memory Size Error

    in forum Enfold
    AngryBovine101
    Participant

    Did a simple FTP transfer and when I went to activate the theme I get the following error:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 122880 bytes) in /home/powerhyd/public_html/home/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullscreen.php on line 173

    Is this a theme issue or a server side issue? When I go to my website my theme shows up but when i go into the back end to edit I get the error right away and cannot continue.

    Thanks in advance for your support.

    #348426

    Hi!

    You can do the same thing for the portfolio grid in /enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 753.

    'terms' 	=> $terms,
    

    Regards,
    Elliott

    Hi Ismael,

    Thanks. Regarding “bumping” the thread, I do apologize…perhaps it can be recommended to edit the original thread rather than add more replies. I though I was helping the situation by adding more detail to what I did. The reason why I started a new topic was because I saw many times moderators asking participants to do so when the topic is outside of the original topic of the thread. I’ve personally had a terrible time trying to search this database so I thought by starting a new topic I was helping the search/tag problem.

    Your suggestions above are pretty generic and cannot actually explain why my site is taking up to 2-3 minutes to load any page or change on the back-end. The largest jpg file I have is 450kb, certainly not enough to crash a site. By the way, I had already increased the max execution time but just forgot to mention it above. It did not make any difference.

    If many people are reporting this issue, then it seems that there is definitely a problem somewhere. Now, the challenge is to find it. A site that cannot load is not going to keep users and every minute I lose is money lost too.

    As I stated above, I am not running any plugins at this time. Also, Godaddy has recommended NOT to install super cache while having caching problems on a website – they recommend to wait until all development is finished and then install it. I think the super cache plugin could make it even more difficult to find the problem at this point.

    The issues I am having now:

    -Cannot edit in Avia editor – forever seeing spinning circle and often “Connection Lost” error + trouble saving changes.

    -Images as small as 100kb taking 2-3 attempts to load (timing out or showing error upon loading.)

    -Extreme slow load-time (working on your list above but I don’t think that a few jpgs can cause such a huge problem.)

    -All of this even with 0 plugins installed.

    I also tried changed CSS file to 755 permissions.

    In addition, I re-ran the Theme Check Plugin after increasing the max execution time in php.ini. I am still getting the Fatal Error: Fatal error: Maximum execution time of 30 seconds exceeded.

    In trying to run the Smush Plugin, I get this error: Notice: Undefined index: wp_smushit in /wp-content/plugins/wp-smushit/wp-smushit.php on line 276 with each image.

    I asked Godaddy to run Error Logs on the site. They say that the errors are code related and do not show any problems on the server. The errors are mostly this (and many):

    (9)Bad file descriptor: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

    Finally, I deleted any extra php code in the child theme functions.php just in case it was slowing the site.

    So far, nothing seems to be helping this problem.

    • This reply was modified 11 years, 5 months ago by onegirlrtw.
    #347918

    Hey jusupof!

    Try opening up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and move lines 370 – 373,

    $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    $output .= '<header class="entry-content-header">';
    $output .= !empty($title) ? "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>" : '';
    $output .= '</header>';
    

    Down to line 389 so they display right above this,

    $markup = avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    

    Cheers!
    Elliott

    #347861

    Hey!

    I wasn’t able to test this out but try opening up /enfold/config-templatebuilder/avia-shortcodes/numbers.php and find lines 285 – 287.

    $number = strip_tags(apply_filters('avf_big_number', $number));
    $number = preg_replace('!(\D+)!','<span class="avia-no-number">$1</span>',$number);
    $number = preg_replace('!(\d+)!','<span class="avia-single-number" data-number="$1">$1</span>',$number);
    

    And change them to this.

    if(!preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT'])) {
    $number = strip_tags(apply_filters('avf_big_number', $number));
    $number = preg_replace('!(\D+)!','<span class="avia-no-number">$1</span>',$number);
    $number = preg_replace('!(\d+)!','<span class="avia-single-number" data-number="$1">$1</span>',$number);
    }

    Cheers!
    Elliott

    #347836

    In reply to: Avia Builder not work

    Hey!

    Please try updating Enfold via FTP. You can find an instructional video on updating Enfold via FTP here:

    Should this not work, please try adding the following to a php.ini file and upload it via FTP to your wp-admin folder

    max_execution_time = 500
    max_input_time = 500
    memory_limit = 128M
    max_input_vars = 3000

    To create a php.ini file, open a text editor, save as all files and name it php.ini, .ini being the file extension.

    If you still cannot load Avia Layout Builder, please forward us administrative credentials to your site for us to have a closer look.

    Please check the “Set as private reply (Only you and moderators will see the content of this post)” option before posting any sensitive information.

    Regards,
    Arvish

    #347773
    MLA18
    Participant

    Is it possible to insert a 728×90 banner (advertising space) into the header? Would this be done by CSS tweaks or would the header.php need to be altered?

    Thanks in advance!

    #347763
    Mike-Hewett
    Participant

    I am setting up a holding page and just have one little thing to resolve with the logo on mobile. As standard the logo scales down and aligns left on the chosen header colour.

    I don’t need a menu for now and really want to swap out @<767px to a different version that is optimised for mobile and have it centre aligned.

    I have added some custom CSS which is making the header space slightly taller and to load in the image but its being cropped on the right and i can’t figure out how to hide the other logo.

    I thought the php and css posted in this post might help but it seems to not have done anything – https://kriesi.at/support/topic/using-a-different-logo-size-on-mobile-devices-possible/

    Any support on this would be great as the limit of my CSS knowledge has been reached!
    Link to the website is in the private content below.

    Many thanks in advance.

    #347714

    hi,

    1) i have tried to copy the includes folder with the whole helper-markup.php file inside the enfold-child folder and after that i removed the file from parent theme but it does not work. i want like if i update the parent theme then no need to make changes in the updated files.

    2) I have copied the original code then place it either below the modified code and it is displays both but problem is that it displays “itemprop=dateModified” in both like
    <time class='date-container minor-meta updated' itemprop="dateModified" datetime="2013-10-19T12:25:09+00:00" >October 19, 2013</time><time class='date-container minor-meta updated' itemprop="dateModified" datetime="2013-10-19T12:25:09+00:00" >July 23, 2014</time>
    but I need like this
    <time class=’date-container minor-meta updated’ itemprop=”datePublished” datetime=”2013-10-19T12:25:09+00:00″ >October 19, 2013</time><time class=’date-container minor-meta updated’ itemprop=”dateModified” datetime=”2014-07-23T12:25:09+00:00″ >July 23, 2014</time>

    Please guide me.

Viewing 30 results - 15,001 through 15,030 (of 16,896 total)