Forum Replies Created

Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • in reply to: Conflict with ACF #663918

    Hello Josue,

    Problem resolved editing avia_builder.js

    Change
    window.postboxes.save_order(pagenow);
    to:
    setTimeout(function() { window.postboxes.save_order(pagenow); }, 100);

    Regards

    in reply to: Conflict with ACF #662560

    Hello,

    the main site is htaccess protected. Is it possble i insert your IP in ?

    regards

    in reply to: Conflict with ACF #661227

    Hello Rikard,
    Regards.

    in reply to: Modify a query #653888

    Hello Ismael,

    I add this code to my functions.php (child theme) :

    add_filter('avia_post_grid_query', 'avf_custom_post_grid_query');
    
    function avf_custom_post_grid_query ( $query ) {
    $query['orderby'] = 'date';
    $query['order'] = 'ASC';
    return $query;
    }

    But it’s not what i need. It’s alter the whole query

    I need the 3 last events display in ASC order.

    But i don’t know if it’s possible.

    Regards

    • This reply was modified 8 years, 4 months ago by hurraken.
    in reply to: Modify a query #651590

    Hello,

    Yes, i use the portfolio grid element and the “avia_post_grid_query” filter.

    Here’s the informations in the private area.
    Best regards.

    in reply to: Update to 3.6.1 gives me error 500 #646887

    Great, it works.

    Thank you Josue.

    Best regards.

    in reply to: Update to 3.6.1 gives me error 500 #646874

    Hello Josue,

    I had this warning in debug mode :

    Fatal error: Call to undefined function avia_header_class() in /xxx/wp-content/themes/enfold-child/header.php on line 12

    I have a copy of the header.php from the parent folder in my child theme :

    <?php
    	if ( !defined('ABSPATH') ){ die(); }
    	
    	global $avia_config;
    
    	$style 				= $avia_config['box_class'];
    	$responsive			= avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout";
    	$blank 				= isset($avia_config['template']) ? $avia_config['template'] : "";	
    	$av_lightbox		= avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
    	$preloader			= avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
    	$sidebar_styling 	= avia_get_option('sidebar_styling');
    	$filterable_classes = avia_header_class( avia_header_class_string() );
    
    	
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?> class="<?php echo " html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> ">
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <!-- page title, displayed in your browser bar -->
    <title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title>
    
    <?php
    /*
     * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
     * located in framework/php/function-set-avia-frontend.php
     */
     if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
    
     /*
     * outputs a favicon if defined
     */
     if (function_exists('avia_favicon'))    { echo avia_favicon(avia_get_option('favicon')); }
    ?>
    
    <!-- mobile setting -->
    <?php
    
    if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
    ?>
    
    <!-- Scripts/CSS and wp_head hook -->
    <?php
    /* Always have wp_head() just before the closing </head>
     * tag of your theme, or you will break many plugins, which
     * generally use this hook to add elements to <head> such
     * as styles, scripts, and meta tags.
     */
    
    wp_head();
    
    ?>
    
    </head>
    
    <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>>
    
    	<?php 
    		
    	if("av-preloader-active av-preloader-enabled" === $preloader)
    	{
    		echo avia_preload_screen(); 
    	}
    		
    	?>
    
    	<div id='wrap_all'>
    
    	<?php 
    	if(!$blank) //blank templates dont display header nor footer
    	{ 
    		 //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
             get_template_part( 'includes/helper', 'main-menu' );
    
    	} ?>
    		
    	<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>
    
    	<?php 
    		
    		if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container'];
    		do_action('ava_after_main_container'); 
    		
    	?>
    

    Best regards

    • This reply was modified 8 years, 5 months ago by hurraken.
    in reply to: Avia builder stops Social warfare #646822

    Hi Vinay,

    Ok, i fixed it by myself.

    Regards.

    in reply to: Change widget function in the child theme #638053

    Great it works !!

    Thank you Josue !

    in reply to: Clickable background #624957

    Hello Josue,

    Thank you for your help, it works !

    Best regards.

    in reply to: Clickable background #623251

    Hello Yigit,

    I’ve a background image on my boxed site. I’d like it be clickable, like an ad.

    Thank you for your help.

    Best regards

    in reply to: Clickable background around the site #622021

    Ok, i succeeded by myself.
    Best regards

    in reply to: Clickable background around the site #621194

    Hello Rikard,

    Thank you for your help.

    Here’s the link

    in reply to: Pagination in a custom loop in a widget #604559

    Great Josue !

    Thank you for everything.

    Best regards

    in reply to: Ajax Portfolio link preview image #604409

    Hello Josue,

    Thank you for your help !

    Best regards

    Done !

    Best regards

    Hello,

    It did nothing. I’ve still this problem.

    Best regards

    Hello,

    Here’s the credentials in private. You’ll find where the problem is in the “Agenda” section.

    Best regards.

    in reply to: Magazine Element – Add orderby function #493025

    Hello,

    Good stuff. Unfortunetly, there’s a bug with the magazine : it works for all the elements but not if you click on the category tabs.

    Best regards.

    in reply to: Magazine #480640

    Hello Ismael,

    I ‘d like to use the <!–more–> tag no the excerpt.

    is it not possible ?

    Regards

    in reply to: Magazine #480099

    The bold don’t work.
    Line 10-11 i add :

    $test=get_post($entry->ID);
     $test = preg_split( '/<!--more(.*?)?-->/', $test->post_content );
    

    on the line :
    if($excerpt)$output .= "<div class='av-magazine-content entry-content' {$markupContent}>{$test[0]}</div>";
    $test[0] instead of $excerpt

    • This reply was modified 9 years, 3 months ago by hurraken.
    in reply to: Magazine #480097

    Hello Ismael,
    You can see in bold what i add and modify (in magazine.php).
    regards

    
    $markupEntry  	= avia_markup_helper(array('context' => 'entry','echo'=>false, 'id'=>$entry->ID, 'custom_markup'=>$this->atts['custom_markup']));
    			$markupTitle 	= avia_markup_helper(array('context' => 'entry_title','echo'=>false, 'id'=>$entry->ID, 'custom_markup'=>$this->atts['custom_markup']));
    			$markupContent 	= avia_markup_helper(array('context' => 'entry_content','echo'=>false, 'id'=>$entry->ID, 'custom_markup'=>$this->atts['custom_markup']));
    			$markupTime 	= avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$entry->ID, 'custom_markup'=>$this->atts['custom_markup']));
    			$format			= get_post_format($entry->ID) ? get_post_format($entry->ID) : 'standard';
    			$type			= get_post_type($entry->ID);
    			$icontype		= $type == 'post' ?  $format : $type;
    			$icon 			=  "<a href='{$link}' {$titleAttr} class='iconfont av-magazine-entry-icon' ".av_icon_string($icontype)."></a>";
    			$extraClass		= "";
    			<strong>$test=get_post($entry->ID);
                            $test = preg_split( '/<!--more(.*?)?-->/', $test->post_content );</strong>
    			
    			if($style == 'small')
    			{
    				if(empty($this->atts['thumbnails']))
    				{
    					 $image = "";
    					 $extraClass = "av-magazine-no-thumb";
    				}
    			}
    			else
    			{
    				$excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_magazine_excerpt_length' , 60) , apply_filters( 'avf_magazine_excerpt_delimiter' , " "), "…", true, '');
    			}
    			
    					
    			
    			$output .= "<article class='hentry av-magazine-entry av-magazine-entry-id-".$entry->ID." av-magazine-format-{$format} av-magazine-type-{$type} av-magazine-entry-".$entry->loop." av-magazine-entry-".$style." {$extraClass}' {$markupEntry}>";
    			
    			if($this->atts['thumbnails'] || ($style == 'big' && $image))
    			{
    							$output .="<div class='av-magazine-thumbnail'>";
    				if($image)	$output .="<a href='{$link}' {$titleAttr} class='av-magazine-thumbnail-link '>{$image}</a>";
    				if(!$image)	$output .= $icon;
    							$output .="</div>";
    			}
    		
    			$output .= 		"<div class='av-magazine-content-wrap'>";
    			$output .=		"<header class='entry-content-header'>";
    			$output .=			"<time class='av-magazine-time updated' {$markupTime}>".$time."</time>";
    			$output .=			$separator.$author_output;
    			$output .=			"<{$titleTag} class='av-magazine-title entry-title' {$markupTitle}>{$title}</{$titleTag}>";
    			$output .= 		"</header>";
    if($excerpt)$output .=		"<div class='av-magazine-content entry-content' {$markupContent}>{<strong>$test[0]</strong>}</div>";
    			$output .= 		"</div>";
    			$output .= 		"<footer class='entry-footer'></footer>";
    			$output .= "</article>";
    			
    			return $output;
    
    in reply to: Magazine #478621

    Hello,
    Here you need.
    Thank you

    in reply to: Magazine #478364

    Hello,

    2 days without response…

    Please help.

    Regards

    in reply to: Magazine #478098

    Hello,

    No help ?

    Regards

    in reply to: Magazine #368872

    Hello Ismael,

    Thank you for your answer.

    Do you think it’s difficult to implement ?

    I think it’s an essential possibility for a magazine.

    BEst regards

    • This reply was modified 9 years, 11 months ago by hurraken.
    in reply to: Magazine #368585
    This reply has been marked as private.
    in reply to: Magazine #368402

    Ok i have to modifiy the core files….

    And When i set a post as sticky, it doesn’t appear first using the magazine shortcode.

    An idea ?

    BEst regards

Viewing 28 posts - 1 through 28 (of 28 total)