Sign in

Proper way to create a box in the sidebar

  • This topic has 5 replies, 2 voices, and was last updated 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6692
    Feriman

    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
    Bob

    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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6696
    Feriman

    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
    Bob

    I put (only) these lines

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6698
    Feriman

    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
    Bob

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Proper way to create a box in the sidebar’ is closed to new replies.