Viewing 30 results - 14,281 through 14,310 (of 16,898 total)
  • Author
    Search Results
  • #442438
    BSTECH
    Participant

    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.

    #441889

    Actually – I thought I had solved this but I haven’t . I got the theme to apply – and it looks like it’s working on the front end – but when I go to save an option in the theme’s option panel I get an error message – see screenshot here – it says script doesn’t work:

    http://www.awesomescreenshot.com/image/201329/f3080789e167a20e6de10fd6bb8f84a0

    I’ve added more memory limit to the wp-config.php file

    define(‘WPLANG’, ”);
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    But still not luck

    any clues would be great

    • This reply was modified 10 years, 11 months ago by ShortieD.
    #441888
    ShortieD
    Participant

    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

    #441853

    I does work. Before, Enfold contact form only sent messages from (xxx@gmal, xxx@hotmail, (Email address hidden if logged out) , (Email address hidden if logged out) ) , except (Email address hidden if logged out) and (Email address hidden if logged out) senders. I tried all variations. After adding this snippet to functions.php, the issue was resolved.
    But there are two inconveniences. One is that all emails accumulated in one pool (since I am using gmail account for incoming emails) from one sender (Email address hidden if logged out) , so I have to click on each one to retrieve a message. Another, when you reply to the message, it’s sent back to (Email address hidden if logged out) instead of the sender. If copy and paste sender’s email, then you loose his body text.
    I have Godaddy as a host provider. What exactly do you want me to ask when I call them?
    Please, I want to resolve this issue ASAP. Don’t want to use Contact Form 7,because won’t be able to reproduce your layout.

    iPLUSm
    Participant

    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!

    #441438

    In reply to: Link issue

    Thanks Yigit

    I don’t have the Editor under Appearance http://dentists.admin.theimplantcentre.com/wp-content/uploads/sites/4/2015/05/Screen-Shot-2015-05-08-at-07.43.45.png

    So we’ve made the changes to the functions.php file via FTP but it doesn’t seem to have resolved the issue.

    Hi!

    Follow these steps as suggested on the thread:

    If your import is failing try the following (this method resolved this issue for me):

    1) Download and Install 7zip.
    2) Right click on your .XML file -> 7zip -> Add to Archive
    3) Change the “Archive format” to gzip and hit “OK”
    4) Try to import the file again (using the .gz you just created) and it should work.

    I also had to bump up the following settings in my php.ini (these settings might be a bit excessive but my importer step 2 was going to a “page not found” front end error until I did this):

    memory_limit = 64M
    default_socket_timeout = 600
    pfpro.defaulttimeout = 600

    Cheers!
    Ismael

    #441389

    Hi Desire!

    Thank you for using Enfold.

    You can decrease the thumbnail size but it will, somehow, reduce the image quality. Look for this code in functions.php:

    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    

    Adjust the width and height then regenerate the thumbnails. https://wordpress.org/plugins/regenerate-thumbnails/

    Use this plugin to optimize the images: https://wordpress.org/plugins/wp-smushit/

    Best regards,
    Ismael

    #441345

    In reply to: Edit Category page

    Hey!

    The fastest way to get the category id is in the category url. In this category, the id is “76”: http://www.geoclima.com/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=76&post_type=post

    Where do you want to show the Archives widget? It is currently placed in the Sidebar Blog widget that’s why it displays in the category pages. Use the widget logic field to control the visibility of the widget.

    Refer to this link regarding the language settings: https://wpml.org/2011/03/howto-display-different-widgets-per-language/

    Note that you can add multiple conditional tags in a single widget. Something like this:

    is_category(76) && ICL_LANGUAGE_CODE == 'en'
    

    I modified the first widget: http://www.geoclima.com/wp-admin/widgets.php

    Cheers!
    Ismael

    laptophobo
    Participant

    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.

    #441095
    This reply has been marked as private.

    Hi!

    3. We would need admin access to check your Quick CSS field. Post login details here as private reply.

    5. Put Elliott’s code into your functions.php. You can find it via FTP or go to Appearance->Editor and choose “functions.php” to put the code inside of it.

    6. Please clear browser cache and refresh your website a few times afterwards.

    7. You could try to use a plugin like this: https://wordpress.org/plugins/simple-image-sizes/

    Make sure to use newest theme (Enfold v3.1.5) and WordPress version.

    Best regards,
    Andy

    #441024

    Hi Ismael,

    I add the code again in the functions.php but no works.

    here is the code on Quick Css

    This is functions code

    The Append search icon to main menu is checked.

    Regards,
    Julian Andres

    • This reply was modified 10 years, 11 months ago by nameki.

    Hey!

    Make sure that you didn’t reach your site’s quota for disk space. Clean up the server space then test it again. Add this line in the wp-config.php file:

    define('FS_METHOD','direct');
    

    If it doesn’t work, try to change the file permission of the wp-content folder to 775.

    Regards,
    Ismael

    #440797
    This reply has been marked as private.
    #440710
    Mdmoisell
    Participant

    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

    Thanks, Ismael — that’s closer.

    Here’s what the first function does: https://www.evernote.com/shard/s320/sh/f753f1d3-cd78-4155-9a73-e8a911a5de6c/369ced36a93c0efed26d007ba74af645 — So, for one, that title’s still in a strip/row above the body area — I’m hoping to get it to show up IN the body area — in the main role=”main” area — where I currently have my manually inserted page titles.

    Also, that just adds the first post title to the top of the category pages, instead of the category title: https://www.evernote.com/shard/s320/sh/21482abe-ad3d-4778-810d-135a3e738cb0/f4f407c0c4673b435d51fdb2de8eec49

    AND, that still duplicates the post titles on single post pages, where the title’s already automatically being added to the page: https://www.evernote.com/shard/s320/sh/70600708-65c6-4309-9c78-aee2e1c2a48f/6c204c82f6d93d730de0e3174eb52853

    The ava_after_main_title hook doesn’t seem to do anything at all. A hook is the same thing as a function, right? I add that in my child theme functions.php file just like the_title function, right?

    Thanks!

    Hi Elliot,
    The first plugin I activated was WooCommerce and get two errors and my site breaks! Without it I can even test.
    On my live site I get the following error:
    Notice: Trying to get property of non-object in /nas/wp/www/cluster-40314/lysejewelry/wp-includes/taxonomy.php on line 4377
    In my wp-admin plugin page I get the following error:
    Notice: Undefined index: plugin in /nas/wp/www/cluster-40314/lysejewelry/wp-admin/includes/update.php on line 281

    When the plugin page is refreshed, the error goes away.

    I reported this to WooCommerce support team.

    Lyse

    #440226

    Hi Yigit, thanks for the help.
    I’d already turned on the custom css fields.
    I’ve added the above code with my changes but I still can’t get it to work. The class is being added when I check in Firebug (but not there when I view source?), and the code I need for the modal window is being added too – but the modal window doesn’t appear when I click on the link.
    This is my code:

    function add_custom_a_class(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.booknow-modal a').addClass('fancybox');
    });
    </script>
    <div class="fancybox-hidden" style="display: none;">
    	<div id="book-act-now">
    	<?php echo do_shortcode('[contact-form-7 id="3615" title="Book Now"]'); ?>
    	</div>
    <?php
    }
    add_action('wp_footer', 'add_custom_a_class');
    

    Is there something I’m missing? The same code added to the header and footer works fine, so I’m wondering if it’s the window.load function that is preventing it from firing.

    #440102

    Hey!

    Thank you for using Enfold.

    The masonry images are resized to a max width and height of 705x705px in the functions.php file. You can increase the px value then regenerate the thumbnails:

    $avia_config['imgSize']['masonry'] 		 		= array('width'=>705, 'height'=>705 , 'crop' => false);		// images for fullscreen masonry
    

    Use this plugin to regenerate the thumbnails: https://wordpress.org/plugins/regenerate-thumbnails/

    I checked the page and the images seem to be ok, maybe because I’m not a photographer. Anyway, please try the solution above.

    Best regards,
    Ismael

    #440098

    Hey!

    Alright. Note that you will not see the content of the advance layout builder if you switch to the default editor. I checked the default editor on this page and it is working: http://eic7.eng.fiu.edu/fiu-research/wp-admin/post.php?post=625&action=edit

    The plugin isn’t fully updated but it works fine on the latest wp version: https://wordpress.org/plugins/widget-logic/

    Regards,
    Ismael

    #439991

    Hi LukasE!

    So your wanting the full posts to be displayed in the grid? You could try switching the contents of line 743 in the masonry_entries.php file.

    $this->loop[$key]['content'] 	= avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 60) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '');
    

    Maybe to this?

    $this->loop[$key]['content'] 	= $entry->post_content;
    

    Though I have not tested what will happen.

    Best regards,
    Elliott

    Hi Josue,

    I refer to logout sesion on woocommerce acount here:
    http://deportivaslider.com/cuenta/

    Sorry but the PHP code is for try with another thirdparty plugin but not work too. it is deleted. Now link has shortcodes [logout_to_home] & [woocommerce_logout] but not work.

    Sorry for english

    Regards,
    Julian Andres Gil

    • This reply was modified 10 years, 12 months ago by nameki.
    #439886

    Hi Brandon!

    Please go to Appearance > Editor and open Functions.php file and find

    $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 );						// images for fullsize pages and fullsize slider
    $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);

    and change the sizes as needed and then regenerate thumbnails using this plugin – https://wordpress.org/plugins/regenerate-thumbnails/

    Cheers!
    Yigit

    #439879
    stupaul22
    Participant

    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.php

    Can 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?

    #439645
    leplusweb
    Participant

    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' );
    	}
    }
    #439471

    Hey!

    Put this after line 786 in /config-templatebuilder/avia-shortcodes/masonry_entries.php:

    $terms = wp_get_post_terms($id, 'portfolio_entries');
    ob_start();
    if ($terms) {
        $out = array();
        foreach ($terms as $term) {
            $out[] = $term->name;
        }
        echo join( ', ', $out );
    } 
    $the_terms_output = ob_get_clean();
    $this->loop[$key]['text_after'] .= $the_terms_output;

    Best regards,
    Josue

    hgx
    Participant

    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 kein id im Parameter-Array definiert für die Seitenleiste “Displayed Everywhere”. Standardwert ist “sidebar-1”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Sidebar Blog”. Standardwert ist “sidebar-2”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Sidebar Pages”. Standardwert ist “sidebar-3”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Footer – column1”. Standardwert ist “sidebar-4”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Footer – column2”. Standardwert ist “sidebar-5”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Footer – column3”. Standardwert ist “sidebar-6”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Footer – column4”. Standardwert ist “sidebar-7”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “Footer – column5”. Standardwert ist “sidebar-8”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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 kein id im Parameter-Array definiert für die Seitenleiste “header”. Standardwert ist “sidebar-9”. Um diesen Hinweis zu entfernen und den existierenden Seitenleisteninhalt zu behalten, kann id manuell 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

    #439067

    I think we have not understood. My menu is more responsive if I reduced the size of my page.
    Before the update I did not have this problem so I ask you a true solution to this problem.
    see print screen

    Screen 1 : Website with 24″ inch
    http://www.hostingpics.net/viewer.php?id=71898020150504164502AccueilLojelis24pouce.png

    Screen 2 : Website with 17 + / – inch
    http://www.hostingpics.net/viewer.php?id=35265220150504164530AccueilLojelisreduit.png

    Regards.

    #439025

    Hi!

    I see that you’ve a added a custom taxonomy but your freebies posts doesn’t have any terms (category) from this custom taxonomy: http://bedesignful.com/wp-admin/edit-tags.php?taxonomy=freebie+tax&post_type=freebies

    I created an example on one of your posts: http://bedesignful.com/wp-admin/post.php?post=7166&action=edit

    This is the freebies page now: http://bedesignful.com/free/

    Best regards,
    Ismael

Viewing 30 results - 14,281 through 14,310 (of 16,898 total)