Forum Replies Created
-
AuthorPosts
-
Hello Josue,
Problem resolved editing avia_builder.js
Change
window.postboxes.save_order(pagenow);
to:
setTimeout(function() { window.postboxes.save_order(pagenow); }, 100);
Regards
Hello,
the main site is htaccess protected. Is it possble i insert your IP in ?
regards
Hello Rikard,
Regards.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.
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.Great, it works.
Thank you Josue.
Best regards.
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.
Hi Vinay,
Ok, i fixed it by myself.
Regards.
Great it works !!
Thank you Josue !
Hello Josue,
Thank you for your help, it works !
Best regards.
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
Ok, i succeeded by myself.
Best regardsHello Rikard,
Thank you for your help.
Here’s the link
Great Josue !
Thank you for everything.
Best regards
Hello Josue,
Thank you for your help !
Best regards
September 8, 2015 at 3:56 pm in reply to: Orderby functionality to blog posts, masonry, post grid and Magazine #499953Done !
Best regards
September 5, 2015 at 7:17 pm in reply to: Orderby functionality to blog posts, masonry, post grid and Magazine #498708Hello,
It did nothing. I’ve still this problem.
Best regards
September 1, 2015 at 12:12 pm in reply to: Orderby functionality to blog posts, masonry, post grid and Magazine #496373Hello,
Here’s the credentials in private. You’ll find where the problem is in the “Agenda” section.
Best regards.
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.
Hello Ismael,
I ‘d like to use the <!–more–> tag no the excerpt.
is it not possible ?
Regards
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.
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;
Hello,
Here you need.
Thank youHello,
2 days without response…
Please help.
Regards
Hello,
No help ?
Regards
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.
This reply has been marked as private.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
-
AuthorPosts