-
AuthorPosts
-
November 5, 2014 at 2:48 am #346317
Hello. In my store I would like to have the user be able to select a type of print to buy either Music or Scenery. Once they click on the category, I would like them to be directed to the next page that has the child categories.
So right now, the page http://store.jaredburnettphoto.com/store/ has a masonry portfolio with portfolio category (prints). I want it to only show the portfolio items for Music and Scenery. However it goes ahead and displays a band (Beartooth). Beartooth’s parent is Music.
Is there a fix around this? If I select both Music and Scenery in the masonry gallery settings it still shows portfolio items in the next level down.
Perhaps I’m just using these portfolio items and categories wrong.
November 5, 2014 at 7:21 pm #346715Hey JaredBurnett!
Try opening up /enfold/config-templatebuilder/avia-shortcodes/masonry-entries.php and find line 888 which should look like this,
'terms' => $terms,Add this beneath it,
'include_children' => false,This should exclude the child categories.
Cheers!
Elliott-
This reply was modified 11 years ago by
Elliott.
November 8, 2014 at 6:01 pm #348177Awesome! Worked perfectly. What if I wanted to do the exact same thing for a normal portfolio grid?
November 9, 2014 at 8:03 pm #348426Hi!
You can do the same thing for the portfolio grid in /enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 753.
'terms' => $terms,Regards,
ElliottNovember 10, 2014 at 2:35 am #348626This reply has been marked as private.November 10, 2014 at 4:27 pm #348834Nevermind. I fixed it. Thanks it worked! I’m just silly.
November 10, 2014 at 6:28 pm #348909Hi!
Those pages are using the masonry and they appear to be working fine. I noticed your using the portfolio on this page, http://store.jaredburnettphoto.com/prints/music/, and it’s displaying correctly but you do not have any child portfolios so there wouldn’t be any to hide.
EDIT – Looks like we posted at the same time. Glad you got it sorted.
Cheers!
Elliott-
This reply was modified 10 years, 12 months ago by
Elliott.
-
This reply was modified 11 years ago by
-
AuthorPosts
- The topic ‘Anyway Solution to Hide Portfolio Child Categories?’ is closed to new replies.
