Sherran
(Sherran)
March 22, 2024, 8:15am
1
I have the same question like this guy:How to add a header image and customize it
Have no idea where should I put this code. Any help?
I just put it here and looks like I am wrong about it.
Or is there any more simple component to add a banner picture to my discourse?
Thanks in advance.
Moin
March 22, 2024, 8:24am
2
Did you also install the Versatile Banner which is mentioned in that topic? The adjustment for that component won’t do anything without the component.
3 Likes
Sherran
(Sherran)
March 25, 2024, 3:13am
3
Yes, I install and put it in use.
HAWK
(Hawk)
March 25, 2024, 3:22am
4
Where are you getting stuck?
Sherran
(Sherran)
March 25, 2024, 3:26am
5
I want to use the versatile banner just to insert the background image but the image only shows a little bit. I need to type words to show more of it but I don’t need words.
HAWK
(Hawk)
March 25, 2024, 3:32am
6
It’s very difficult to understand the issue with so little info. Could you share images to show what is going wrong?
Lilly
March 25, 2024, 3:33am
7
Hi @Sherran if you are just wanting to insert a banner image, the Vesatile banner component may not be ideal. Perhaps try having a look at this topic:
or have look at the various banner components in the theme-component category
https://meta.discourse.org/search?q=banner%20%23theme-component%20order%3Alatest_topic
Lilly
March 25, 2024, 4:59am
8
@Moin kindly just reminded me of this:
try this in a theme component. in common css:
#homepage-banner {
width: 100%;
height: 300px;
}
you can adjust the height to however you like.
put the following around the image in the versatile banner component where you have your image URL, probably the main heading content field.
<div id="homepage-banner">
put image here
</div>
you can add other CSS code to format it more. you can look at the versatile banner on my site (see profile) and get an idea of what can be done with oth…
They clearly have a much better memory than I do
2 Likes
Sherran
(Sherran)
March 25, 2024, 6:27am
9
I delete all the content in columns and insert a background picture:
But the picture is only shown like this:
And I want it to be shown in full size.
So I tried to put the code in the above given by the support or whoever it is in the theme‘s CSS (I don’t know if this is the right place. Looks like not.)
I don’t know how to customize HTML. If I have the banner image URL, how can I make it a banner?
Lilly
March 25, 2024, 2:35pm
10
Did you look at the link I posted above? It has the solution for you:
1 Like
Sherran
(Sherran)
March 27, 2024, 1:47am
11
Thanks. I will try. When you say use this CSS, I don’t know where exactly shall I put that thing in {}. Let me see.
Sherran
(Sherran)
March 27, 2024, 2:16am
12
The CSS #homepage-banner is not working. I changed the width and height but the image presented in full and didn’t show any changes. So I write everything in the main heading content:
But the image will get to the subject content instead of staying as a banner.
About the CSS didn’t work. I put it here this way. What I shall change?
I am not good at coding and HTML. I must be missing something. Hope I can have your help. Thanks in advance.