Code: Select all
{% if SCRIPT_NAME eq 'index' %}
<link href="{T_THEME_PATH}/my_css_file.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet">
{% endif %}
'index'
is for the index.php file and my_css_file.css
needs to be in your theme's folder, you can also name the CSS file what ever.And how do I add image path in css file ?Steve wrote: ↑Tue Sep 10, 2024 7:55 pm You can use in the overall_header.htm:Note thatCode: Select all
{% if SCRIPT_NAME eq 'index' %} <link href="{T_THEME_PATH}/my_css_file.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet"> {% endif %}
'index'
is for the index.php file andmy_css_file.css
needs to be in your theme's folder, you can also name the CSS file what ever.
Code: Select all
body {
background-image: url('./images/background.jpg');
background-size: cover;
background-position: center;
}
Code: Select all
.section-index {
background: url(https://www.phpbb.com/community/styles/prosilver/theme/en/icon_user_online.gif);
}
.section-index
either. I'll have to remember this..section-posting
and .section-viewtopic
and so on will work also?.section-viewforum
and .section-search
and .section-memberlist
and .section-ucp
and probably a few others I can't recall offhand. Just check the body classes on any page.