You can use css with Aspect ratio
Example code: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp
You can check my site https://businesslab.vn with ratio 16:10
How I can set this in the Discourse? Like where and which css do I set?
Also, there is this minor issue when setting Google Ads:
I assume the sidebar profile card should be below the ad, not right on top of it.
Thanks!
Hello @codergautam,
I have merged a fix for Discourse Ad plugin - Google Adsense. Please update the theme.
You can change the image height
You need to create a new component for this.
-
Go to
/admin/customize/themes/
Customize â Themes -
Click the Components tab and then the Install button
-
On the popup window click Create new button and type the new component name.
-
Click Create button.
-
The component created. Now select FKB Pro theme to activate it.
-
Click the Edit CSS/HTML button.
-
Click the Common tab and paste the below code to the CSS section.
If you want to set the image height separately on desktop and mobile, use those tabs instead of Common. Common means this code will be active on desktop and mobile too.
.topic-list {
.main-link {
.link-middle-line {
.topic-image {
height: 280px; // Default 300px
}
}
}
}
If you want to hide the image, use this
.topic-list {
.main-link {
.link-middle-line {
.topic-image {
display: none;
}
}
}
}
Hope to fix incompatibilities with other theme components
How do you just round the buttons and stuff? I just wanted to do this in my current theme
Hi @danielabc,
There are some theme-component for rounding stuffs.
Hello @xiaokong23357, can you clarify which theme-component do you mean?
@Don How do I introduce the binding HTML meta tag into an FBK theme?
Hope it will be solved
@Don I mean, I donât know if the theme can load these things
Format layout recommendation: Optimized, simple, compact, and wide
Hello, sorry for the delay⊠Yeah I think itâs possible to replace the default right panel with Right Sidebar Blocks. I will check this.
One more thing ïŒ @Don
My forum uses your theme, now my forum is going to be ready to be added to the Microsoft Bing search engine, but now it needs to do HTML meta tag detection for the forum, how do I do to incorporate this HTML meta tag into the theme
It is very needed now, and I am very grateful for being able to solve it
Create a new theme component in admin like this I introduced above. FKB Pro - Social theme - #88 by dodesz you can change the component name whatever but donât paste the css I pasted to CSS
tab. Copy and Paste the Bing HTML Meta tag
into the HEAD
tab to the component you created and save it.
Nope, as I see this is a theme. You need to create a component. Which is the other tab or you can convert this to a component with the convert button which is on the bottom of the page. Just follow the instructions I show above.
Thank you very much, problem solved!
@Don
Iâve merged an update to add: Compatibility with Right Sidebar Blocks theme component by VaperinaDEV · Pull Request #18 · VaperinaDEV/fkb-pro-theme · GitHub
It contains a setting: right sidebar blocks enabled
. It will adds some support for the Right Sidebar Blocks theme component and will replaces the default right sidebar (fkb panel) with it.
I have an idea that the sidebar can be made by you in this style and merged into a theme file, and people who need it can turn on the corresponding feature in the theme settings @Don
Hello,
Yes I think this is possible with modify the style if you mean the title is separate from content and it seems this sidebar is not sticky.
Try something like this.
Create a new theme component like this FKB Pro - Social theme - #88 by dodesz or add it to an existing one.
Desktop / CSS
.full-width .tc-right-sidebar {
position: relative;
top: unset;
padding: 0;
background: none;
box-shadow: none;
overflow-y: unset;
.rs-component {
h3 {
border-bottom: none;
padding-bottom: 0;
}
> div {
background: var(--secondary);
padding: 1em;
border-radius: var(--d-default-border-radius);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
}
}
FYI: both /login
and /signup
as links gives spinning circle, not opening the modal. iPad on latest everything.
Hey Jakke I just checked this on your site with and the modals shows up correctly for me on /login
and /signup
.