Hi I was wondering if you might have seen my feature request?
Or Alternatively a theme-component that would allow one to ‘dock’ a toolbar under the main site bar when viewing a specific category? As that is what I am looking for more specifically. This could be something like Joe’s custom header links for example.
Guidance even adjusting an existing theme-conponent’s behaviour to accomplish this would be awesome.
I do apologize as I am still very much a novice learning as I go.
The custom header links is a pretty simple theme component and I think it would be a good start to use the same code base but to put the link list somewhere else.
That said, it doesn’t support submenus, which would be tricker to add.
Another approach would be to do a component without any settings, just using HTML, CSS (and maybe a bit of JS). So, it would be a pretty “static” customization and if you need to do any change, you’d have to edit the proper HTML and CSS code.
Something like the Custom header links might be easier until I get more xp. or matbe guidance to make a seperate component that say targets and overrides something like Johani’s custom header links component to change behavior to under header(may have option for this already) with overrides to use current parent category.
However if have 2 sponsors would need to know if can install component twice with renaming component and targetting component by name.
(A) Custom header links
(B) Custom Header Links
Iirc there is a theme component that adds a sude bar based in category? but a side bar would not work as is inly desktop. so need top bar.
Now ir might be easier as working on custom theme-component
to as you mentioned to simplify this by some simple after the header code that targets the category with showing simple links using a pic here and there for main links with say a community link going to a post or published page?
I again want to thank you for your time & sharing of knowledge.
<div id="category-general-banner" class="below-header-banner">
<h2>🚀 Here's some content only displayed on the <strong>General</strong> category</h2>
<div id="category-site-feedback-banner" class="below-header-banner">
<h2>✨ Here's some content only displayed on the <strong>Site Feedback</strong> category</h2>
Here’s the SCSS I put in the CSS tab (Discourse uses SCSS which extends CSS features):
Basically, you’d take this code and put it in my code as a replacement for the <h2> tag and its content. But I’d suggest you refine and adapt this code to your needs, not just copy-paste it.
As for having the list of elements inline instead of on top of each other, there are many CSS ways to do that… A lot of them are pretty straightforward, but then we fall a bit out of the scope of the help we provide here. See this explanation:
If I am being honest with myself and those around me. I am a novice enthusiast. I have had some programing in high school involving gwbasic and turbo pascal. I have taken the initiative to use an ap to help learn html and CSS and have had some successes. However not anything at a high level.
For example someone shared a code example to hide a category from the hamburger menu. It worked well but was a lot of coding to hide all the ones I wanted. This was prior to the theme-component “Category Hider” though did contribute with an idea to have an option to hide all sub categories to which a community member had shared a 1 or 2 line code that hid all subcategories. lol
That was much more efficient then I targeting each one to hide individually.
However I have now had mild success modifying Welcome Link banner by comparing the settings.yml with Modern Category boxes iirc settings.yml with swapping out the first setting with one that targets listing categories vs discovery. However it seems I still need to compare a couple of files to see where the setting takes effect. As I can add categories to the first setting but it does not see to be working quite yet.
I know I need to read more and use a better ide than my mobile to truly evolve my understanding and awareness. I will get there I just need to have the humility and focus to do so.
For that I am truly thankful we have this great and understanding community whom has often when asked given me guidance I need with a high level of patience that many would not give.
I know with studying code and taking time I will get there. I am too stubborn not too.
I do use linux and have now setup my desktop to better facilitate things… plus need to see how the desktop side of design and the mobile to create a well balance design. I am learning new things all the time. I am basing the core on the Air Theme as it is a great starting point.