The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Adjusting my Wordpress Facebook page plugin feed
post Aug 3 2021, 08:31 AM
Post #1

Group: Members
Posts: 1
Joined: 3-August 21
Member No.: 28,029

I am likely being dim, sorry!
Not done website building in years, hence using Wordpress thinking it would be
So i have generated my facebook page plug in code, added a javascript, CSS and HTML code plugin to enable this feed to work and it does, yippee!! BUT....

i need it to be in the centre of the page but as i have used the HTML code box on wordpress i cannot adjust it's position but i see within the plugins code there are the added sizes i opted for but no option to place in the centre of the page.
I have placed it within a wordpress column but that hasn't helped with this situation so i have copied and pasted the code below and if anyone can advise me of where and what to put within that code to make it move to the centre of the webpage i would be beyond grateful!

I've tried things but they haven't worked, my fault i am sure so any help greatly appreciated, Thank you

<div class="fb-page" data-href="" data-tabs="timeline" data-width="600" data-height="800" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="" class="fb-xfbml-parse-ignore"><a href="">SA Tiling</a></blockquote></div>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
post May 28 2024, 11:42 PM
Post #2

Group: Members
Posts: 1
Joined: 28-May 24
Member No.: 29,179

I'd be glad to help you center the Facebook page plugin on your WordPress website.
Here's a combined approach incorporating the best aspects of both responses and addressing potential issues.
There are two main ways to add custom CSS to your WordPress site. If you're comfortable with code, you can access the CSS editor of your WordPress theme. This option allows you to make site-wide changes.
If you only want to center the plugin on a specific page, you can use the "Add Custom CSS" option in the WordPress block editor (Gutenberg) or the classic editor.
This CSS rule targets the element with the class fb-page (the Facebook plugin container) and sets its margin properties to 0 auto. This centers the element horizontally within its parent container. maximtimeclock

Make sure the plugin you choose is compatible with your current WordPress version. If you have other CSS rules that might be affecting the positioning, you may need to adjust the specificity of your centering rule (e.g., by adding a more specific selector). After making changes, test the centering on different devices and screen sizes to ensure it looks good everywhere.

This post has been edited by jeatmi: May 28 2024, 11:44 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 24th July 2024 - 02:02 AM