mongoose-marketplace / facebook-page-feed-graph-api

It's time to upgrade from your old like box! Display the Facebook Page Plugin from the Graph API using a shortcode or widget.
GNU General Public License v2.0
4 stars 1 forks source link

Hiding specific elements #38

Closed jez-chaplin closed 6 years ago

jez-chaplin commented 6 years ago

Hi,

I'm hoping to be able to hide the top banner so that the first thing shown is the first post on the page - the css selector I can identify is #u_0_0 > div:nth-child(1) > div > div._2lqh

I can't seem to get this to hide and I suspect it's due to the plugin populating the page after page load and the css therefore not applying.

Is there another approach to hiding this element please?

Thanks, Jeremy.

screen shot 2017-09-28 at 20 26 33
cameronjonesweb commented 6 years ago

Hi @jez-chaplin,

You can't apply CSS to the contents of an iframe when the source is on a different domain. If this was possible it would be a major security risk. There's also no option to hide the header that Facebook provides unfortunately. I would recommend using the small header option which makes the header only 70px tall.

Thanks