Support Forum
Support › MB Settings Page › Post Type + Template Bricks Builder + Page for menu = no CSS on active page menuResolved
Hi There,
I’m using Bricks Builder, with Meta Box obviously 😉
So, I don’t know if I made a mistake, but I have…
- Create a Post Type (Country | slug: countries)
- Create a field group (Countries | location: Post type > Country (countries))
- Create all my fields (Country, Continent, Population…)
- Create my Countries into my Post Type (France, UK, Germany…)
- And Filled all data in each country fields
After my database is ready, I have…
- Create a Template in Bricks (Archive-Post – type: Archive) and edit my page (with section, title, …, and WP Grid Builder).
- Create a page “Countries” for my menu, to get my Template into it, and to get a right path into the Breadcrumbs of the active page.
Everything is seems to work correctly, but my menu, when I’m on the “Countries” page, is not taking the CSS properties in consideration (on active page). I get the full Template, with the right grid from WP Grid Builder, data are correct, clicks are referring to the right page, …, all works fine, but the name of the active page (Counties) into the menu is not acting as it should (CSS variables on active page).
I have tried to change the page name, but the Breadcrumbs is not showing the right path (it uses the path of the Post Type).
Maybe it’s a normal behavior for CSS on active page with Templates and Post Types, but maybe I’m doing things the wrong way?
Any advice or tricks that can give me the CSS access on the menu page name of the active page?
Thank you,
Eric
Hello,
In the case of using Bricks Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://metabox.io/support/topic/support-policy/
If you want to use the code to output the settings page value, please follow the documentation https://docs.metabox.io/extensions/mb-settings-page/#data
Hello Peter, and thank you for your advice, that I will follow 🙂
My first thought was, it was an issue with Meta Box, but you know more that I do.
Best Regards,
Eric
Hello Peter,
Just to make sure...
For my project, am I doing it the right way with Meta Box - I have a doubt?
1 Creating a Post Type called Country (Meta Box | slug: countries | Hierarchical)
2 Creating a Field Group called Countries, with all fields that I need for each country (Meta Box | Location: Post type > Country (countries))
- 2.1 and I added some categories (continents in this case)
3 Creating all countries post into my Countries Post Type… (France, Spain...)
- 3.1 filled-up all fields into each country (e.g. France, Paris, French...)
- 3.2 used in each country post the Gutenberg area to make for each country an article
As my Country Post Type (slug: countries) is hierarchical, Meta Box did create the page into my WordPress Pages, right?
(sorry, but I can't remember if I did create it myself)
So far, everything if working properly (beside of the menu), and that way I can see that my countries and hierarchical, and the breadcrumb is reacting properly.
Are these steps the way to proceed for my case with Meta Box, or I am doing it the wrong way?
Thank you,
Eric
Hello Peter,
The support team in Bricks point that my CSS not showing on active page was maybe related to the menu (Appearance > Menu).
So, I found out that, in Bricks, if you build a Template (you give it a Template Type – Archive in my case), this template is accessible more or less everywhere, and also in Appearance > Menu as a classic page – but it acts differently as a normal page.
So, for people who have the same issue…
I did delete the Countries page selected from the menu, and I added a Custom Link with the right URL and the name Countries.
Now my CSS on active page is showing!
Anyway, thanks for your time, Peter!
Eric