Forum Replies Created

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • 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 help

    Regards,

    in reply to: Redirect page for Mailchimp Widget #832344

    Yes I’a like to add this attribute. Yes I’d like some help for javascript, please…

    Regards,

    in reply to: Redirect page for Mailchimp Widget #831455

    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!

    in reply to: Portfolio file modification issues #801091

    Hi Ismael,

    Everything is allright now, thanks. It is “posts_per_pages” and not “post_per_page”

    Regards

    in reply to: Portfolio file modification issues #798124

    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!

    in reply to: Portfolio file modification issues #798117

    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!

    in reply to: Portfolio file modification issues #797748

    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/kJFMkZXH

    Here is the file calling the portfolio:
    https://pastebin.com/JXUS9Ahr

    Help!
    Thanks

    in reply to: Portfolio file modification issues #795834

    Ismael,

    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!!
    Thanks

    in reply to: Portfolio file modification issues #794286

    Hi 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 left

    I 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

    in reply to: Portfolio file modification issues #794270

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

    in reply to: Portfolio file modification issues #780503

    Thanks 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,

    in reply to: Portfolio file modification issues #779837

    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

    in reply to: Portfolio file modification issues #776230

    How can I deactivate lightbox?

    That’s my question
    Thanks

    in reply to: Portfolio file modification issues #774836

    Thanks 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,

    in reply to: Portfolio file modification issues #773726

    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)….?
    Thanks

    in reply to: Portfolio file modification issues #771029

    Thanks 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/kJFMkZXH

    Here is the file calling the portfolio:
    https://pastebin.com/JXUS9Ahr

    I 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,

    in reply to: Portfolio file modification issues #770102

    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,

    in reply to: Portfolio file modification issues #769767

    Hello, please can I have some help? It is quite urgent, thanks!

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