Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The thing is, you’ve applied the background to the header. So you’re never going to achieve what you want.
.titleclass {
background-repeat: no-repeat;
background-position: left top;
background-size: cover;
background-image: url(../../img/demo_header_01.jpg);
}
thanks for the quick reply Andrew!
I did select on the header background style transparency on. However after inserting the code I still have that white background behind the video.
Another thing i wanted to ask is if it is possible to replace the Icone for Dribbble on the social media links. I couldnt find the icon image anywhere in the theme files maybe you could point it to me?
Cheers!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Can you set that image as the page’s main background instead?
yay! It worked! Thanks alot! Im new to this so im sorry if this was noobish!
Do you know how i could change the icon?
Cheers!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Your theme uses a font for the icons, the font is called ‘Font Awesome’. The icons are controlled with CSS, using the ‘content’ property.
To override the Dribble icon…
If you’re not using a Child Theme, and if the theme doesn’t have a designated section of the dashboard for CSS modifications then do the following:
- Install this Custom CSS Manager plugin http://ww.wp.xz.cn/plugins/custom-css-manager-plugin
- use its “CSS Code” section of the dashboard to hold your CSS modifications:
-
(put this code in)
.icon-dribbble:before {
content: "[character-reference]";
}
- Save
Alternatively use your Child Theme style.css file to hold your CSS modifications
If you look in the ‘Font Awesome’ cheatsheet in the link below, you will see the character references of the icons. For example, Dribble has the character reference of (please ignore the spaces, I’ve added that to get past this forum’s parser):
[ & # x f 1 7 d ; ]
You need to ignore these characters:
[&#x;]
The only bit you want is this bit:
f17d
In the CSS ‘content’ property you want to put those characters inside the speech marks, but you need to prepend a backslash to those characters:
\f17d
To result in the code:
.icon-dribbble:before {
content: "\f17d";
}
You can change that.
https://fortawesome.github.io/Font-Awesome/cheatsheet/
Hi again Andrew
I tried to do exactly what you said however when i insert the code with the different icon it simply shows the code number instead of the icon.
.icon-dribbble:before {
content: “\f008”;
}
shows f008 on the website instead of the film icon
Thanks again!
nevermind problem solved! was something to do with not reading the code properly. i just replaced the code on the css file itself and it worked!
thanks!