simple portfolio plugin and current_page_parent problem
-
I’m currently making a portfolio website for myself. In this website I have Home, Projects, Resume, and Blog as my navigation. When someone views any of those pages I want the navigation button for the current page to have a different css styling.
Right now in my css I have:.current_page_item a { -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; background-color: #004D86; padding-right: 10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; } .current_page_parent a{ -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px; background-color: #004D86; padding-right: 10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; }
This is to style any current page menu buttons with a background color to show the user they are on that current page.
I am also using the Simple Portfolio plugin to organize my projects. In order for Simple Portfolio to work you need to have a page with the same name as the slug of the portfolio. This stops the page content from loading and instead loads the portfolio content.When viewing Projects (the page that shows my portfolio content) the Projects menu button does not have different styling. Instead Blog has a different styling. When I look at the page with Firebug I notice that Projects isn’t set to the current_page_item or current_page_parent. Instead blog is set as current_page_parent.
Does anyone know any workarounds for my current problem or if I am doing something wrong to cause this error to occur? Is there a way to stop Projects from being a parent of Blog or can I instead manually set Projects as the current page?
I’m not extremely familiar with php or css, but I have tried various fixes and searched for all sorts of solutions.
If there is anything else that I need to mention or code that I need to paste, let me know.Thanks,
-MooKoo
- The topic ‘simple portfolio plugin and current_page_parent problem’ is closed to new replies.