Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #897235

    for simple staff list (https://en-ca.wordpress.org/plugins/simple-staff-list/) i made a copy of the page.php and placed it in the childe folder and made it work with the simple staff list code! This is working nice

    but how do i choose the widget for this page sidebar? I want to change it from all pages that are being showed to latest entries.

    thanks

    #897279

    open the customn page in the child directory

    change the line
    $avia_config['currently_viewing'] = 'page';

    into for example
    $avia_config['currently_viewing'] = 'staff';

    create a widget called staff

    copy sidebar.php into the child directory

    add before general shop sidebars

    // staff pages sidebars
                if ($avia_config['currently_viewing'] == 'staff' && dynamic_sidebar('Staff') ) : $default_sidebar = false; endif;
                

    and yes it is working!

    #897369

    Hi,

    Great, glad you got it working and thanks for sharing, much appreciated :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.