-
Search Results
-
I want to see a different logo depending on the page.
I had added this code to helper-main-menu-php :
global $post;
if ( is_page(3279) || ‘3279’ == $post->post_parent || is_page(3342) || ‘3342’ == $post->post_parent || is_page(3345) || ‘3345’ == $post->post_parent || is_page(4096) || ‘4096’ == $post->post_parent || is_page(4109) || ‘4109’ == $post->post_parent || is_page(1167) || is_page(5169))
{
echo avia_logo(AVIA_BASE_URL.’../../uploads/2014/07/logo-CLCF-web-e1406472780943.png’, $addition, ‘strong’, true);
}
else
{
echo avia_logo(AVIA_BASE_URL.’../../uploads/2013/04/TCatCL-logo-transparent-small-resized.png’, $addition, ‘strong’, true);
}
This was working, but does not anymore. Can you advise? Has there been a theme update? logo-CLCF-web-e1406472780943.png is never displayed it is always TCatCL-logo-transparent-small-resized.png
Thanks in advance.
Hi folks – I’m getting this error when I activated the Enfold Theme and now I can’t actually get into the WP-Admin area
https://www.ttnq.org.au/ttnqnew/wp-admin/
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 283113 bytes) in /home/ttnqorg/public_html/ttnqnew/wp-content/themes/enfold/css/dynamic-css.php on line 811
do I need to get my host to increase the memory size?
Cheers
Hallo,
I create a website using the enfold theme. At the moment, the main menue comprises 71 pages. If i now try to extend the menue, the next item is converted to a mega menue item after saving the menue. It is also moved from the second level to the top level. The checkmark for the position in theme (checkmarked was Enfold Child Main Menu) also got lost. According to the info.php the max_input_vars = 5000, so that the restriction of this value shoudn’t be responsible for this behavior.
I would be glad if you would have other ideas for solving this problem.
Kind regards and thanks in advance!I just moved my Enfold site from local host to my server (see private content for location). Then I went to change the URLs state-wide with the WP Migrate DB plugin and the Settings screen was blank. I then checked the Theme, and that too was blank. I activated the “WP Debug” and saw this:
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Displayed Everywhere” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar Blog” sidebar. Defaulting to “sidebar-2”. Manually set the id to “sidebar-2” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar Pages” sidebar. Defaulting to “sidebar-3”. Manually set the id to “sidebar-3” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer – column1” sidebar. Defaulting to “sidebar-4”. Manually set the id to “sidebar-4” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer – column2” sidebar. Defaulting to “sidebar-5”. Manually set the id to “sidebar-5” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer – column3” sidebar. Defaulting to “sidebar-6”. Manually set the id to “sidebar-6” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/medicalo/public_html/mocs/wp-includes/functions.php on line 3560
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 72 bytes) in /home/medicalo/public_html/mocs/wp-includes/plugin.php on line 207
I changed out the Enfold theme with a fresh one and still no luck. I’ve dumped the site and DB completely and migrated from local host (which is working fine) again and am getting the same error messages.
I’ve purchased 4 Enfold themes so far and have not encountered this before.
Help.
Topic: Can't Get Into Dashboard
Hi, I cannot get into the dashboard area at all. This is the message I’m getting:
Warning: require_once(/var/chroot/home/content/p3pnexwpnas07_data02/13/2512113/html/wp-content/plugins/google-analytics-for-wordpress/vendor/yoast/api-libs/google/includes/admin/register-dynamic-styles.php): failed to open stream: No such file or directory in /var/chroot/home/content/p3pnexwpnas07_data02/13/2512113/html/wp-content/themes/enfold/functions.php on line 442
Fatal error: require_once(): Failed opening required ‘includes/admin/register-dynamic-styles.php’ (include_path=’/var/chroot/home/content/p3pnexwpnas07_data02/13/2512113/html/wp-content/plugins/google-analytics-for-wordpress/vendor/yoast/api-libs/google:.:/usr/local/php5_4/lib/php’) in /var/chroot/home/content/p3pnexwpnas07_data02/13/2512113/html/wp-content/themes/enfold/functions.php on line 442
I have followed the directions to add the social media icon as described in this post:
https://kriesi.at/support/topic/add-social-media-icon-to-header/But won’t this get lost every time I update the theme?
I tried tried adding this whole block of code to functions.php in my child theme folder but it did not work.
$avia_config['font_icons'] = apply_filters('avf_default_icons', array( //post formats + types 'standard' => array( 'font' =>'entypo-fontello', 'icon' => 'ue836'), 'link' => array( 'font' =>'entypo-fontello', 'icon' => 'ue822'), 'image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80f'), 'audio' => array( 'font' =>'entypo-fontello', 'icon' => 'ue801'), 'quote' => array( 'font' =>'entypo-fontello', 'icon' => 'ue833'), 'gallery' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80e'), 'video' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80d'), 'portfolio' => array( 'font' =>'entypo-fontello', 'icon' => 'ue849'), 'product' => array( 'font' =>'entypo-fontello', 'icon' => 'ue859'), //social 'behance' => array( 'font' =>'entypo-fontello', 'icon' => 'ue915'), 'dribbble' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fe'), 'facebook' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f3'), 'flickr' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8ed'), 'gplus' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f6'), 'linkedin' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fc'), 'yelp' => array( 'font' =>'fontello', 'icon' => 'ue800'), 'instagram' => array( 'font' =>'entypo-fontello', 'icon' => 'ue909'), 'pinterest' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f8'), 'skype' => array( 'font' =>'entypo-fontello', 'icon' => 'ue90d'), 'tumblr' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fa'), 'twitter' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f1'), 'vimeo' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8ef'), 'rss' => array( 'font' =>'entypo-fontello', 'icon' => 'ue853'), 'youtube' => array( 'font' =>'entypo-fontello', 'icon' => 'ue921'), 'xing' => array( 'font' =>'entypo-fontello', 'icon' => 'ue923'), 'soundcloud' => array( 'font' =>'entypo-fontello', 'icon' => 'ue913'), 'five_100_px' => array( 'font' =>'entypo-fontello', 'icon' => 'ue91d'), 'vk' => array( 'font' =>'entypo-fontello', 'icon' => 'ue926'), 'reddit' => array( 'font' =>'entypo-fontello', 'icon' => 'ue927'), 'digg' => array( 'font' =>'entypo-fontello', 'icon' => 'ue928'), 'delicious' => array( 'font' =>'entypo-fontello', 'icon' => 'ue929'), 'mail' => array( 'font' =>'entypo-fontello', 'icon' => 'ue805'), //woocomemrce 'cart' => array( 'font' =>'entypo-fontello', 'icon' => 'ue859'), 'details' => array( 'font' =>'entypo-fontello', 'icon' => 'ue84b'), //bbpress 'supersticky' => array( 'font' =>'entypo-fontello', 'icon' => 'ue808'), 'sticky' => array( 'font' =>'entypo-fontello', 'icon' => 'ue809'), 'one_voice' => array( 'font' =>'entypo-fontello', 'icon' => 'ue83b'), 'multi_voice' => array( 'font' =>'entypo-fontello', 'icon' => 'ue83c'), 'closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue824'), 'sticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue808\ue824'), 'supersticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue809\ue824'), //navigation, slider & controls 'play' => array( 'font' =>'entypo-fontello', 'icon' => 'ue897'), 'pause' => array( 'font' =>'entypo-fontello', 'icon' => 'ue899'), 'next' => array( 'font' =>'entypo-fontello', 'icon' => 'ue879'), 'prev' => array( 'font' =>'entypo-fontello', 'icon' => 'ue878'), 'next_big' => array( 'font' =>'entypo-fontello', 'icon' => 'ue87d'), 'prev_big' => array( 'font' =>'entypo-fontello', 'icon' => 'ue87c'), 'close' => array( 'font' =>'entypo-fontello', 'icon' => 'ue814'), 'reload' => array( 'font' =>'entypo-fontello', 'icon' => 'ue891'), 'mobile_menu' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8a5'), //image hover overlays 'ov_external' => array( 'font' =>'entypo-fontello', 'icon' => 'ue832'), 'ov_image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue869'), 'ov_video' => array( 'font' =>'entypo-fontello', 'icon' => 'ue897'), //misc 'search' => array( 'font' =>'entypo-fontello', 'icon' => 'ue803'), 'info' => array( 'font' =>'entypo-fontello', 'icon' => 'ue81e'), 'clipboard' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8d1'), 'scrolltop' => array( 'font' =>'entypo-fontello', 'icon' => 'ue876'), 'scrolldown' => array( 'font' =>'entypo-fontello', 'icon' => 'ue877'), 'bitcoin' => array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'), ));Then there is still the matter of the code added to:
includes > admin > register-admin-options.phpCan you please give a brief tutorial for adding the Social Media Icon to the child theme so that it will not be overwritten when the theme is updated?
Hello !
I try to personnalize the widget latest-news ( I want to add a link, move title and image etc…)
I add the code below to a function.php of my child theme ( i saw it here : )
The new widget is correctly create but the change i made in function widget() doesn’t look to be applied
There is a better way to do that ?
Thx !
add_action('after_setup_theme','avia_load_additional_widget'); function avia_load_additional_widget() { if (!class_exists('avia_customcptbox')) { class avia_customcptbox extends avia_newsbox { function avia_customcptbox() { $this->avia_term = ''; $this->avia_post_type = ''; $this->avia_new_query = ''; //set a custom query here $widget_ops = array('classname' => 'newsbox', 'description' => 'Derniere actualite' ); $this->WP_Widget( 'customcptbox', THEMENAME.' actualite', $widget_ops ); } } function widget($args, $instance) { global $avia_config; extract($args, EXTR_SKIP); echo $before_widget; $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); $count = empty($instance['count']) ? '' : $instance['count']; $cat = empty($instance['cat']) ? '' : $instance['cat']; $excerpt = empty($instance['excerpt']) ? '' : $instance['excerpt']; $image_size = "square"; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; if(empty($this->avia_term)) { $additional_loop = new WP_Query("cat=".$cat."&posts_per_page=".$count); } else { $catarray = explode(',', $cat); if(empty($catarray[0])) { $new_query = array("posts_per_page"=>$count,"post_type"=>$this->avia_post_type); } else { if($this->avia_new_query) { $new_query = $this->avia_new_query; } else { $new_query = array( "posts_per_page"=>$count, 'tax_query' => array( array( 'taxonomy' => $this->avia_term, 'field' => 'id', 'terms' => explode(',', $cat), 'operator' => 'IN') ) ); } } $additional_loop = new WP_Query($new_query); } if($additional_loop->have_posts()) : echo '<ul class="news-wrap image_size_'.$image_size.'">'; while ($additional_loop->have_posts()) : $additional_loop->the_post(); $format = ""; if(empty($this->avia_post_type)) $format = $this->avia_post_type; if(empty($format)) $format = get_post_format(); if(empty($format)) $format = 'standard'; $the_id = get_the_ID(); $link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : get_permalink(); echo '<li class="news-content post-format-'.$format.'">'; //check for preview images: $image = ""; if(!current_theme_supports('force-post-thumbnails-in-widget')) { $slides = avia_post_meta(get_the_ID(), 'slideshow', true); if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) ) { $image = avia_image_by_id($slides[0]['slideshow_image'], $image_size, 'image'); } } if(current_theme_supports( 'post-thumbnails' ) && !$image ) { $image = get_the_post_thumbnail( $the_id, $image_size ); } $time_format = apply_filters( 'avia_widget_time', get_option('date_format')." - ".get_option('time_format'), 'avia_newsbox' ); echo "<a class='news-link' title='".get_the_title()."' href='".$link."'>"; $nothumb = (!$image) ? 'no-news-thumb' : ''; echo "<span class='news-thumb $nothumb'>"; echo $image; echo "</span>"; if(empty($avia_config['widget_image_size']) || 'display title and excerpt' != $excerpt) { echo "<strong class='news-headline'>".get_the_title(); if($time_format) { echo "<span class='news-time'>".get_the_time($time_format)."</span>"; } echo "</strong>"; } echo "</a>"; if('display title and excerpt' == $excerpt) { echo "<div class='news-excerpt'>"; if(!empty($avia_config['widget_image_size'])) { echo "<a class='news-link-inner' title='".get_the_title()."' href='".$link."'>"; echo "<strong class='news-headline'>".get_the_title()."</strong>"; echo "</a>"; if($time_format) { echo "<span class='news-time'>".get_the_time($time_format)."</span>"; } } the_excerpt(); echo "</div>"; } echo '</li>'; endwhile; echo "</ul>"; wp_reset_postdata(); endif; echo $after_widget; } register_widget( 'avia_customcptbox' ); } }Hallo Enfold Fans,
mit der Bitte um deutschsprachige Antwort, wenn möglich.Ich habe zwischen Logo links im Header und dem Wort “Startseite” rechts folgendes eingefügt:
<div id=”text-2″ class=”widget clearfix widget_text”>
<div class=”textwidget”>
<h6>Sprachen / Languages – Deutsch + English</h6> (Diese Zeile steht im Textfeld vom Header-Widget)
</div>Dazu habe ich im Childtheme in der dortigen functions.php ein widget erstellt:
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
add_action( ‘ava_after_main_menu’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}Das funktioniert ja auch, habe aber jetzt, da das Widget keine ‘id’ hat, habe ich lauter Fehlermeldungen.
Dies soll erst ab 4.2.1 so sein:<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Displayed Everywhere”. Standardwert ist “sidebar-1”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-1” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Sidebar Blog”. Standardwert ist “sidebar-2”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-2” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Sidebar Pages”. Standardwert ist “sidebar-3”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-3” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Footer – column1”. Standardwert ist “sidebar-4”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-4” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Footer – column2”. Standardwert ist “sidebar-5”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-5” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Footer – column3”. Standardwert ist “sidebar-6”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-6” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Footer – column4”. Standardwert ist “sidebar-7”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-7” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “Footer – column5”. Standardwert ist “sidebar-8”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-8” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Notice</b>: register_sidebar wurde fehlerhaft aufgerufen. Es wurde keinidim Parameter-Array definiert für die Seitenleiste “header”. Standardwert ist “sidebar-9”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kannidmanuell auf “sidebar-9” gestellt werden. Schau Dir Debugging in WordPress an, um mehr darüber zu erfahren. (Diese Meldung wurde in Version 4.2.0 hinzugefügt.) in <b>/var/www/wp-includes/functions.php</b> on line <b>3560</b><br />
<br />
<b>Warning</b>: session_start(): Cannot send session cookie – headers already sent by (output started at /var/www/wp-includes/functions.php:3560) in <b>/var/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php</b> on line <b>32</b><br />
<br />
<b>Warning</b>: session_start(): Cannot send session cache limiter – headers already sent (output started at /var/www/wp-includes/functions.php:3560) in <b>/var/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php</b> on line <b>32</b><br />
<!DOCTYPE html>
Zeile 3560:
trigger_error( sprintf( __( ‘%1$s was called incorrectly. %2$s %3$s’ ), $function, $message, $version ) );Soll ich die Fehlermeldung ignorieren? (wäre vielleicht nicht verkehrt ein Header-Widget als Standard zu etablieren)
Oder was machen?
Gruß hgx



