• Resolved jslusarczyk

    (@jslusarczyk)


    Hi there.
    I have changed latest_news.php to display 6 news from my blog instead of carousel of 4 blocks. Unfortunatelly it is all aligned to left.
    How can I change it to be aligned center like it is Our_focus section?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi

    Please share website URL.

    Thanks

    Hey there,

    First of all, editing theme’s main files is not recommended as the customizations will be lost when the theme is updated. You can setup a child theme instead by following this guide. Unfortunately, our support does not cover help with custom coding. Hope you understand.

    Thread Starter jslusarczyk

    (@jslusarczyk)

    Hi codemovement.pk,
    This is the website I talk about ??

    @suyogya Shukla
    I know that editing theme is not recommended because I can lost all changes with theme update.
    I know your support doesn’t cover custom coding. I don’t ask for it.
    I just want to know where is information about section alignment so I could change it myself.
    Section Our_focus is center aligned, and Latest_news is aligned to left. I just want to know where can I change it (section Latest_news).

    Thank you.

    Hey there,

    Sorry for the misunderstanding. You can align the latest news section to center by adding following custom CSS to your child theme’s stylesheet or by using a plugin like Advanced CSS Editor:

    #carousel-homepage-latestnews .item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    Hope it helps.

    Thread Starter jslusarczyk

    (@jslusarczyk)

    Yes, it helps a lot.
    display: flex; was the code I was looking for. Thanku you ??

    Hey there,

    Glad I was able to help. If you’re happy with out products and support, please leave us a kind review here. Thanks!

    Thread Starter jslusarczyk

    (@jslusarczyk)

    I am almost happy ??
    I aplied code:

    `#carousel-homepage-latestnews .item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    }`

    and I have 6 news in ine row – it looks great for me. There is only one problem.
    I have 2 rows of news in 1 row – 3 news + space + 3 news. It is what I was looking for. The only thing that won’t let me sleep is that right side of news is smaller than left one.
    Pictures for left side are 132x132px and pictures for right side are 119×119. It is same picture for all the news.
    Any idea where is the problem?

    Hello,

    Please share the screenshot of problematic area, so i can take a look.

    Regards,
    Gourav

    I have a related issue to this;
    I use Colormag theme, the website address is africanpeoplesvoice.com ,
    As you see all contents are aligned center, please anyone may help me and give me the codes that i can use in custom CSS so it may get fixed??

    Regards!!!

    Hi there,
    Please go to Admin > Appearance > Customize > Additional CSS > Insert the given below of custom CSS code.

    body, button, input, select, textarea {
        text-align: inherit !important;
    }
    

    Thanks

    Thank you @mdshak codes are working but only on homepage but single posts are still centered,
    When i open the Post.

    you can check by opening any post here: africanpeoplesvoice.com

    Thanks.

    Hi,
    Please remove my first code and now remove the code from header right sidebar area. Your header right code is cause to issue.
    Thanks

    Where will i find header right code ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Latest news section content alignment’ is closed to new replies.