XF 2.3 Use text instead of logo

Seeker-Smith

Well-known member
Hi

How do I go about using this instead of an image logo? Can I just put the style in page_container?

<style>
.banner {
background-color: #17242E;
color: white;
font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
font-size: 2em;
text-align: center;
padding: 20px;
}
</style>
<title>Honey Harbour Hub</title>
</head>
<body>
<div class="banner">
Honey Harbour Hub
</div>
 
Solution
Hi

How do I go about using this instead of an image logo? Can I just put the style in page_container?

<style>
.banner {
background-color: #17242E;
color: white;
font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
font-size: 2em;
text-align: center;
padding: 20px;
}
</style>
<title>Honey Harbour Hub</title>
</head>
<body>
<div class="banner">
Honey Harbour Hub
</div>
The logo is rendered here:
Code:
                        <xf:macro id="style_variation_macros::picture"
                            arg-property="publicLogoUrl"
                            arg-propertyRetina="publicLogoUrl2x"...
Hi

How do I go about using this instead of an image logo? Can I just put the style in page_container?

<style>
.banner {
background-color: #17242E;
color: white;
font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
font-size: 2em;
text-align: center;
padding: 20px;
}
</style>
<title>Honey Harbour Hub</title>
</head>
<body>
<div class="banner">
Honey Harbour Hub
</div>
The logo is rendered here:
Code:
                        <xf:macro id="style_variation_macros::picture"
                            arg-property="publicLogoUrl"
                            arg-propertyRetina="publicLogoUrl2x"
                            arg-width="{{ property('publicLogoWidth') }}"
                            arg-height="{{ property('publicLogoHeight') }}"
                            arg-alt="{$xf.options.boardTitle}" />
That should be the block of code you want to replace (on page_container template) if want to use your styled text banner
 
Solution
The logo is rendered here:
Code:
                        <xf:macro id="style_variation_macros::picture"
                            arg-property="publicLogoUrl"
                            arg-propertyRetina="publicLogoUrl2x"
                            arg-width="{{ property('publicLogoWidth') }}"
                            arg-height="{{ property('publicLogoHeight') }}"
                            arg-alt="{$xf.options.boardTitle}" />
That should be the block of code you want to replace (on page_container template) if want to use your styled text banner
Thanks, works great.
 
The logo is rendered here:
Code:
                        <xf:macro id="style_variation_macros::picture"
                            arg-property="publicLogoUrl"
                            arg-propertyRetina="publicLogoUrl2x"
                            arg-width="{{ property('publicLogoWidth') }}"
                            arg-height="{{ property('publicLogoHeight') }}"
                            arg-alt="{$xf.options.boardTitle}" />
That should be the block of code you want to replace (on page_container template) if want to use your styled text banner
How to proceed if I want to use the text logo only in one of the styles?
Thank You
 
How to proceed if I want to use the text logo only in one of the styles?
Thank You
What I did was. There are probably hundreds of other ways.

ACP Appearance > Templates > page_container

Search for:

<xf:macro id="style_variation_macros::picture"
arg-property="publicLogoUrl"
arg-propertyRetina="publicLogoUrl2x"
arg-width="{{ property('publicLogoWidth') }}"
arg-height="{{ property('publicLogoHeight') }}"
arg-alt="{$xf.options.boardTitle}" />

Replace with:

<div class="banner">
Put your text here
</div>

Go to top of templates and after the head tag:

<style>
.banner {
background-color: #17242E;
color: white;
font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
font-size: 2em;
text-align: center;
padding: 20px;
}
</style>
 
  • Like
Reactions: Dkf
Back
Top Bottom