Custom Images and CSS
Ready to take your theme to the next level? Let's explore how to use custom images and CSS to create truly unique designs.
Custom Images
Custom images allow you to add distinctive visual elements to your theme, such as backgrounds, icons, gifs, or decorative touches.
How to Use Custom Images:
In the Theme Creator, find the "Custom Images" section.
Click "Add image" and choose an image file from your computer.
Once uploaded, the image is assigned a CSS variable name (e.g.,
--custom-image-0
).Feel free to rename this variable to something more descriptive if you'd like.
Using Custom Images in CSS:
To incorporate your custom image into your theme, use the var()
function in your CSS. Here's an example:
This sets the background of .element
to your custom image.
Custom CSS
Custom CSS is where you can really flex your creative muscles. It allows you to fine-tune every aspect of your theme's appearance, from colours to layouts and beyond.
Overriding Theme Colours:
To change the default theme colours, you can modify CSS variables. Here are some key variables you might want to adjust:
If your styles aren't taking effect, try adding !important
:
Custom Fonts
Want to give your theme a truly unique look? Custom fonts are a great way to do that! Here's how you can add and use custom fonts in your BetterSEQTA+ theme:
Using Google Fonts
Google Fonts is a popular, free service that provides a wide variety of web fonts. Here's how to use it:
Copy the
@import
URL provided by Google Fonts.Add the import statement at the top of your CSS:
Apply the font to your elements:
Example: The "Hacker" theme uses the Orbitron font for a futuristic look:
Using Fontsource
On the font's page, look for the "CDN" button.
Scroll down and copy the CSS in:
For example (above) the inter font selected from fontsource.
Apply the font to your elements:
Advanced Setup
Tips for Custom CSS:
Use browser developer tools (Inspect Element) to find CSS selectors for specific elements you want to modify.
Start with small changes and build up your theme gradually.
Add comments to your CSS to make it easier to understand and maintain later.
In the next section, we'll provide some specific CSS examples and techniques to help you create amazing themes for BetterSEQTA+. Let's keep exploring!
Last updated
Was this helpful?