Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Proper way to create a box in the sidebar

  • #6692
    Avatar photo[anonymous]

    Hi,

    I would like to create a box in the sidebar, like the widget in WordPress.

    I found the “Advertisement” option under “Theme/Sidebar/Ad”. It would be fine, but what is the correct way to rename the “Advertisement” title of this box? Could you add an option to rename is easily?

    Thank you!

    Feriman

    #6695
    Avatar photoBob

    All words which come from the theme may be found in the language file. For more useful information, where to find the file, as well as how to prevent overwriting of changes during theme update, please refer to our documentation: https://getpublii.com/docs/translate-publii-theme-to-another-language.html

    #6696
    Avatar photo[anonymous]

    Thanks Bob for the quick response.

    Unfortunately it doesn’t work for me for some reason. I use TechNews theme and the newest Publii.

    I copied the original language file here:

    c:\Users\Feriman\Documents\Publii\sites\ferimancom\input\languages\technews.lang.json

    I put (only) these lines into this file:

    “listing”: {
    “advertisement”: “My Replaced Text”

    I synced my website, but nothing changed. I tested it in incognito mode as well.

    #6697
    Avatar photoBob
    [anonymous] wrote:

    I put (only) these lines

    That’s why it doesn’t work, copy the full content and change the phrases you need.

    #6698
    Avatar photo[anonymous]

    Okay, in that case the sample on this below support page is wrong:

    https://getpublii.com/docs/translate-publii-theme-to-another-language.html

    It says in “For Advanced Users” part it’s enough to use this code:

    "slider": {
    "button": "Your button text here",
    "slide": "Slide %s"

    But I have to use like this:

    {
    "slider": {
    "button": "Your button text here",
    "slide": "Slide %s"
    }
    }

    It works with the second one.

    Anyway, thanks for your support!

    #6699
    Avatar photoBob

    Indeed,  the example in the documentation was not complete. Thanks for drawing our attention.