Jump to content
thirty bees forum
  • 0

HTML Block, how to create a banner that show in Navigation, but on in the center and beside the Language and Sign in buttons?


papagino

Question

Hello people, I would like to create a banner on the top of the page in Navigation Hook using the Native HTML Block module, but that would show up in the center of the page and on the left side of the Language and Sign In button like in this image:

Banner.thumb.png.354ec906e9c3a506389df5634ff5cccc.png

I have tried all kind  banner sizes and it will always show either above or below the Language and Sign In buttons, never on the same horizontal block.

BTW, I've tried the native "Thirtybees Banner module", but this is not working to good for me, Native HTML Block is a much better and easy to use module as you can turn on or off contents by a simple tick...

I am on Niara theme under Thirtybees 1.5 bleeding edge and PHP 8.1.

Anyways to get this working like mentioned above?

It is not possible to transplant HTML Block module to the "displayBanner" Hook. This should be added for this module.

Cheers

Dan

 

Edited by papagino
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Ok I managed to do an easy way around by editing the tbhtmlblock.php so the HTML Block module is able to be transplanted to the displayBanner hook.

Could the Thirtybees developers make this change so this can be used by others.

Attached is the modified tbhtmlblock.php files

Cheers

Dan

tbhtmlblock.php

Edited by papagino
  • Like 1
Link to comment
Share on other sites

  • 0
On 6/20/2023 at 8:25 PM, papagino said:

Ok I managed to do an easy way around by editing the tbhtmlblock.php so the HTML Block module is able to be transplanted to the displayBanner hook.

Could the Thirtybees developers make this change so this can be used by others.

Attached is the modified tbhtmlblock.php files

Cheers

Dan

tbhtmlblock.php 22.85 kB · 2 downloads

you should do a PR in github here:

https://github.com/thirtybees/tbhtmlblock

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...