Okay
  Public Ticket #274539
Sorting Portfolio
Closed

Comments

  • KLbox started the conversation

    Hi Salient,

    I have 2 questions with regards to the option to Categories the portfolios:

    1. I have several portfolios classified under the same category (the categories are also the titles of my menu). However, when I browse from one to the other using the Left and Right arrows (top right on this page http://cynthiakhouryraphael.com/portfolio/beirut-l... ), it does not browse inside the category but just to the next Porfolio. How can I make sure the arrows is a path to the next portolio of the same category?

    2. On this page, http://cynthiakhouryraphael.com/art-and-works/ ,  the Menu which is selected is Orange. But when I go to one of the portfolio of this category, the title is blank and not anymore orange. How can I make sure the Menu highlights the category to which belongs the portfolio?

    Many thanks,

    CA

  •  1,071
    ThemeNectar replied

    Hey CA!

    1. Open your single-portfolio.php file and replace 

    <li id="prev-link"><?php next_post_link('%link','<i class="icon-salient-left-arrow-thin"></i>'); ?></li>
    <li id="next-link"><?php previous_post_link('%link','<i class="icon-salient-right-arrow-thin"></i>'); ?></li>
    

    with this:

    <li id="prev-link"><?php be_next_post_link('%link','<i class="icon-salient-left-arrow-thin"></i>',TRUE, null,'project-type'); ?></li>
    <li id="next-link"><?php be_previous_post_link('%link','<i class="icon-salient-right-arrow-thin"></i>',TRUE, null, 'project-type'); ?></li>
    

    In the init.js file located in the js folder you'd need to change this line to fit your menu title:

    //portfolio more details page menu highlight
    $('body.single-portfolio #header-outer nav > ul > li > a:contains("Portfolio")').parents('li').addClass('current-menu-item');

    i.e. change the "Portfolio" to "ART(&)WORKS"

    Cheers



  • KLbox replied

    Many thanks for your quick response.

    My first question has been resolved. My second has not been resolved:

    I did modify the init.js file as below to cover my 3 menus:

    //portfolio more details page menu highlight

    $('body.single-portfolio #header-outer nav > ul > li > a:contains("ARTS(&)WORKS")').parents('li').addClass('current-menu-item');

    $('body.single-portfolio #header-outer nav > ul > li > a:contains("(E)MOTIONS")').parents('li').addClass('current-menu-item');

    $('body.single-portfolio #header-outer nav > ul > li > a:contains("SKETCH(INK)")').parents('li').addClass('current-menu-item');

    But the result is 2 menus in orange, one in blank, see below

    http://cynthiakhouryraphael.com/portfolio/fragile-... for a portfolio under (E)MOTION Menu

    http://cynthiakhouryraphael.com/portfolio/beirut-l... for a portfolio under ART(&)WORKS Menu

    Any idea?

    Thank you for your support

    Cheers

  •  1,071
    ThemeNectar replied

    Hey again!

    Anyway you could allow me to login so I can try to fix that for you?

    Cheers

  •   KLbox replied privately
  •  8,839
    Tahir replied

    Hey!

    We would need administrator acces to the WP Dashboard. 

    Thanks


    ThemeNectar Support Team 

  •   KLbox replied privately
  •   KLbox replied privately
  •  1,071
    ThemeNectar replied

    Hey KLbox, sorry for the delay -

    I'm getting an invalid username error when trying to log in with that, can you confirm the credentials are correct?

    Cheers

  •   KLbox replied privately
  •  1,071
    ThemeNectar replied

    Unfortunately for some reason I'm not able to edit the files on your server through the admin panel - something might be blocking it, is there anyway you could lend FTP credentials?

  •   KLbox replied privately
  •  1,071
    ThemeNectar replied

    Thanks, I just logged in and made the change for you - seems to be taking now :)

  •   KLbox replied privately
  •  8,839
    Tahir replied

    Hey!

    I can see it in orange: http://prntscr.com/4phbzk . Seems like you got this sorted. 

    Cheers


    ThemeNectar Support Team 

  • KLbox replied

    Oups, I think there is a mis-understanding, the objective was to have the Main title in Orange when a portfolio belonging to the category is active.

    Ex: in the picture attached, "Fragile" Portfolio is part of (E)Motion section, thus (E)Motion should be in Orange, while this is Art(&)Works which is in orange,

    For the color of porfolio titles (such as "Fragile") I can manage vis the CSS.

    Do you have any clue on how to manage my pb?

    Thks,

    CKR

  •   Tahir replied privately
  • KLbox replied

    Hi,

    Is it not possible to customize the followings with a ïf" loop?

    //portfolio more details page menu highlight $('body.single-portfolio #header-outer nav > ul > li > a:contains("Portfolio")').parents('li').addClass('current-menu-item');

    Thks

  •  8,839
    Tahir replied

    Hey Again!

    I am afraid in css there is no if .

    Thanks


    ThemeNectar Support Team 

  • KLbox replied

    Hi,

    I am sorry to come back to you again on the same topic (see picture attached).

    Salient Demo actually use the same feature I am trying to apply:

    http://themenectar.com/demo/salient-frostwave/port...

    On this page with a mosaic of several portfolio, the main title "Porfolio" is Blue.

    And if you go into one of the portofolio of the mosaic, the main title remains blue

    http://themenectar.com/demo/salient-frostwave/port...

    Your original idea was to modify tthe init.js file.

    Quote

    In the init.js file located in the js folder you'd need to change this line to fit your menu title:

    //portfolio more details page menu highlight
    $('body.single-portfolio #header-outer nav > ul > li > a:contains("Portfolio")').parents('li').addClass('current-menu-item');

    i.e. change the "Portfolio" to "ART(&)WORKS"

    Unquote

    Could you have a final look at this, I feel a bit depressed as the main architecture of my side cannot be seen because of this.

    Many thanks

    CKR

  •  1,071
    ThemeNectar replied

    Hey - are the ftp credentials still the same? I can't seem to connect to the server at the moment

  •   KLbox replied privately
  •  1,071
    ThemeNectar replied

    Rereading your post I realized the functionality you're looking for wouldn't be possible without some custom development since you're looking for the navigation to dynamically highlight based on the category - the demo only allows the main portfolio link to be highlighted as the script is checking for the page named "portfolio". Unfortunately WordPress doesn't add any classes based on the category the project is in by default so selective highlighting wouldn't be quickly possible through javascript