Forum Replies Created
-
AuthorPosts
-
October 11, 2017 at 8:09 am in reply to: Shortcode preview issue with simple quote in the button label #862761
Hi Richard,
Sure I can do it, I can also use double quote instead of simple… and it’s working. But I can not ask my client to do so.
I need this to be fixed, please helpRegards,
Yes I’a like to add this attribute. Yes I’d like some help for javascript, please…
Regards,
Thanks, but my issue is different…
The problem is that there’s no option to fill the “data-avia-redirect” in the “Appearance > Widgets > Enfold Mailchimp Newsletter Signup”
I need to redirect to a new page after signing in…Please help!
Hi Ismael,
Everything is allright now, thanks. It is “posts_per_pages” and not “post_per_page”
Regards
Ismael,
OK I think I fixed that with ” is_post_type_archive(‘tableaux_reglages’) ”
Can you tell me for “$query->set( ‘items’, ’12’ )”… it’s not working…
One more thing: I want to keep the column left on mobile (to have it before my list) but it’s automatically going after the list on mobile…
How can I fix that?Thanks thanks!
Thanks Ismael, it’s a little bit better:
I’ve put that code in functions.php:
“add_action( ‘pre_get_posts’, ‘ava_pre_get_posts’);
function ava_pre_get_posts($query){
if(is_archive()):
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘orderby’, ‘title’ );
$query->set( ‘items’, ’12’ );
endif;
}”
It’s working because I use only “is_archive” condition.
My ‘tableaux_reglages’ is not a taxonomy but a custom_post_type ; how can I do the test?
I’ve tried “if( get_post_type() == ‘tableaux_reglages’ )” but it’s not working…Can I set the number of items? It’s not working with “$query->set( ‘items’, ’12’ )” …
Please, please!
Ismael,
I’m sorry it’s on a private server, I can’t give access. I’ve already put my files in Pastebin:
Here is the code of portfolio.php:
https://pastebin.com/kJFMkZXHHere is the file calling the portfolio:
https://pastebin.com/JXUS9AhrHelp!
ThanksIsmael,
1- I’ve pasted the code in the enfold-child functions.php but it makes no change! I don’t understand:
“add_filter( ‘avia_post_grid_query’, ‘avia_post_grid_query_mod’, 10, 2);
function avia_post_grid_query_mod( $query, $params ) {
$query[‘orderby’] = ‘title’;
$query[‘order’] = ‘DESC’;
$query[‘items’] = ’12’;
return $query;
}”2- An issue with the code to get the sidebar on the left. I have a blank page after my header:
“add_filter(‘avia_layout_filter’, ‘avia_change_post_layout’, 10, 2);
function avia_change_post_layout($layout, $post_id){
if(is_post_type(‘tableaux_reglages’))
{
$layout[‘current’] = $layout[“sidebar_left”];
$layout[‘current’][‘main’] = “sidebar_left”;
}
return $layout;
}”Help!!
ThanksHi Ismael,
Some more info (link below) about my custom_type page:
– I’d like to order items by name
– I’d like 12 items per page
– I’d like siderbar on the leftI have that code in my archive page (but it’s not working):
“$grid = new avia_post_grid(array( ‘linking’ => ‘ajax’,
‘columns’ => ‘3’,
‘contents’ => ‘title’,
‘sort’ => ‘no’,
‘paginate’ => ‘yes’,
‘items’ => ’12’,
‘query_orderby’ => ‘title’,
‘query_order’ => ‘DESC’,
‘set_breadcrumb’ => false,
‘preview_mode’ => ‘auto’,
));
$grid->use_global_query();
echo $grid->html();//get the sidebar
$avia_config[‘currently_viewing’] = ‘portfolio’;
get_sidebar()”It is quite urgent now… Can you help?
Thanks a lot
Hi,
I’m not able to change parameters (“query_order by”, “items” are not working) in the file “calling the portfolio”, ie that part of the code:
“$grid = new avia_post_grid(array( ‘linking’ => ‘ajax’,
‘columns’ => ‘3’,
‘contents’ => ‘title’,
‘sort’ => ‘no’,
‘paginate’ => ‘yes’,
‘items’ => ’12’,
‘query_orderby’ => ‘title’,
‘query_order’ => ‘DESC’,
‘set_breadcrumb’ => false,
‘preview_mode’ => ‘auto’,
));
$grid->use_global_query();
echo $grid->html();”Can you help?
ThanksThanks I know that. But I want it to the left for my cutsom post and to the right for the blog. They are both Archive pages so I need to “force” one of them in the code… ?
Regards,Hello,
Can I force the sidebar to the left position?
I found that code in my archive page…
//get the sidebar
$avia_config[‘currently_viewing’] = ‘portfolio’;
get_sidebar();Thanks
How can I deactivate lightbox?
That’s my question
ThanksThanks for your reply Victoria.
I’m a developper.
Can you tell me what to change on the line 415?Or, how and where can I switch to that default case?
Regards,Now they are public.
I just need to know how I can change the options of the portfolio, especially how I can change the link on the picture (a link to the page instead of a lighbox)….?
ThanksThanks Victoria.
I can’t give you a link to the page now because we are on private developpment host.
Here is the code of portfolio.php:
https://pastebin.com/kJFMkZXHHere is the file calling the portfolio:
https://pastebin.com/JXUS9AhrI have a lightbox link on the picture in the ajax preview, but I need a link to the page… I don’t know what option I have to change to get that…?
Regards,
Thank you Victoria, it helped me a lot.
I’ve been able to duplicate and modify portfolio.php in my child theme, and add my attachments in the Ajax preview, but…I’m not able to change parameters in the file “calling the portfolio”, ie that part of the code:
“$grid = new avia_post_grid(array( ‘linking’ => ‘ajax’,
‘columns’ => ‘3’,
‘contents’ => ‘title’,
‘sort’ => ‘no’,
‘paginate’ => ‘yes’,
‘items’ => ’12’,
‘query_orderby’ => ‘title’,
‘query_order’ => ‘DESC’,
‘set_breadcrumb’ => false,
‘preview_mode’ => ‘auto’,
));
$grid->use_global_query();
echo $grid->html();”I’d like a link (on the picture) to the article instead of a lightbox…
Can you help?
Regards,Hello, please can I have some help? It is quite urgent, thanks!
-
AuthorPosts