Notifications
Clear all

[Solved] Alignment of Cross-posting Custom Content (Forums)

7 Posts
2 Users
1 Reactions
286 Views
Posts: 39
Topic starter
(@amitkool21)
Trusted Member
Joined: 2 years ago

As per the topic, If I Cross-post Custom Content in Forums, you can see in the pictures that Text/Title can be aligned to center but the images or youtube videos can't be aligned to center, any workaround for this ?

Screenshot 2024 07 15 at 00.04.49
Screenshot 2024 07 15 at 00.05.30

 

6 Replies
Astghik
Posts: 6193
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi,

Please leave the example URL to allow us to check the issue.

5 Replies
(@amitkool21)
Joined: 2 years ago

Trusted Member
Posts: 39

@astgh 

https://yatrahelpline.com/community/main-forum/parashar-dham/#post-59

https://yatrahelpline.com/community/around-the-world/moscow-top-10/#post-48

 

At the end of the page on 2nd link, there is a image which is Center Aligned, but the first picture is not, even though both have same settings.

Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6193

@amitkool21 

Try this CSS code:

#wpforo #wpforo-wrap .wpf-embed {
     margin: 0 auto!important;
}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content img, #wpforo #wpforo-wrap .wpforo-revision-body img{
    width: 100%;
}

Insert the code in the Custom CSS code textarea located in the following tab: 

For the Single Board Forum:

  • Dashboard > wpForo > Settings > Colors & Styles

Multi-Boards Forum:

  • Dashboard > [Your Board Name] > Settings > Colors & Styles tab
  • Dashboard > [Your Board Name] > Settings > Colors & Styles tab

For example:

  • Dashboard > EN Forum > Settings > Colors & Styles tab
  • Dashboard > FR Forum > Settings > Colors & Styles tab
(@amitkool21)
Joined: 2 years ago

Trusted Member
Posts: 39

@astgh 

Youtube embed in the first link is exactly what I wanted, So first part of CSS is working fine, but it'll only work for youtube embeds or others as well...?? I'm asking because its not working for instagram links, instagram embeds on this page are not centered.

https://yatrahelpline.com/community/photography-club/international-monuments/#post-83

But the CSS for 2nd link is forcing the width of all the images to 100%, which is not what I want. Can't we just force the justification to center ... ??

Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6193

@amitkool21 

Please add this one as well: 

#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content iframe {
    margin: 0 auto !important;
}

But the CSS for 2nd link is forcing the width of all the images to 100%, which is not what I want. Can't we just force the justification to center ... ??

Use this one: 

#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content img, #wpforo #wpforo-wrap .wpforo-revision-body img {
     display: inline-block !important;
}
(@amitkool21)
Joined: 2 years ago

Trusted Member
Posts: 39

@astgh 

Thank You, both of them are working as I wanted.

Share:
Scroll to top