-
AuthorPosts
-
July 2, 2015 at 1:44 am #467300
Hi guys!!!
Let’s see if I am not doing something I shouldn’t do… ;)
I am trying to add Google AdSense to the body of a post and have it centered within the page (not left aligned as it comes out by default) – Needless to say, the Adsense code is inside of a Custom Widget.
I tried the following options using the Theme Shortcodes:
1- Layout Elements of 1/3 each and add the shortcode for the customer widget in the middle 3rd. Result: Text that follows left aligns and displays on the space for the last third. :(
2- Insert Pricing Table showing the empty cells.
[av_table purpose='pricing' pricing_table_design='avia_pricing_minimal' pricing_hidden_cells='avia_show_empty_cells' caption='' responsive_styling='avia_responsive_table'] [av_row row_style=''][av_cell col_style=''][/av_cell][av_cell col_style=''][av_sidebar widget_area='Inside posts'][/av_cell][av_cell col_style=''][/av_cell][/av_row] [/av_table]
Result: widget content is displayed on each of the cells even though it is only on one of them (switched to writing “text” and the table behaved perfectly, therefore it only happens when adding a widget)Is there anything I could do to achieve the goal of centering the widget display? All your suggestions are always extremely welcome!!!
Thank you so much!!! And keep up the amazing work!! :)
Warmly,
Havi
July 3, 2015 at 2:48 pm #468021Hey havi!
Can you send us a link to your page so we can take a look? You can set your reply as private if you wish.
Cheers!
ElliottJuly 6, 2015 at 4:39 pm #469078Hi Elliott!! :)
I will prepare access for you (I have it as a draft) so you can see it (and the settings… maybe it’s something there)
Thank you so much!!!
Warmly
Havi :)
July 6, 2015 at 6:32 pm #469185Hi Elliott!!
Here you go!!!
Thank you so much!!!
Warmly,
Havi
July 7, 2015 at 3:48 pm #469745Hey!
Hmm, they all looked centered on my end. For the three columns I noticed you have an H2 right beneath them but it’s displaying beneath the third column. If you want it to display beneath the 2nd column then add a “whitespace / separator” element beneath the three columns to clear the floats.
Otherwise, take a screenshot and highlight what your seeing so we can get a better idea.
Also, I didn’t see the pricing table anywhere. Did you remove it? Go ahead and add it back in so we can see what it’s doing.
Regards,
ElliottJuly 7, 2015 at 5:27 pm #469842Hi Elliott!!
Thank you so much!!
Yes, the widget always gets centered what gets populated on the third part of the page is the following text (in this case there’s only and H2 text) and I did try adding a whitespace/separator before but I got no response but I just added one and the H2 displays on the following line as it should!
Woohoo!! I even made it -50 so there wouldn’t be any space added afterwards! For the life of me I just couldn’t figure out why it was not behaving as it should!
Thank you sooooo much!!!
Havi
PS: Yes, I had removed the table but the same thing was happening, third cell was being populated with the following text and my goal was to have the widget display centered and alone ;)July 8, 2015 at 9:33 am #470091Hi!
Can you please provide a screenshot of the issue? I visited the link you provided above and the google ads or widgets are centered inside the post container. http://bodasyweddings.com/?p=3306&preview=true
Best regards,
IsmaelAugust 13, 2015 at 12:03 am #486834Hi Ismael!!
It’s taken care of!! Safari caches everything!! I had to clean the caches, close Safari, open safari and the separator works!! :)
Thank you soooooooo much!!!
Warmly,
Havi :) -
AuthorPosts
- The topic ‘Trying to have a widget display in the center of a post’ is closed to new replies.