Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #468021

    Hey 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!
    Elliott

    #469078

    Hi 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 :)

    #469185

    Hi Elliott!!

    Here you go!!!

    Thank you so much!!!

    Warmly,

    Havi

    #469745

    Hey!

    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,
    Elliott

    #469842

    Hi 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 ;)

    #470091

    Hi!

    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,
    Ismael

    #486834

    Hi 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 :)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Trying to have a widget display in the center of a post’ is closed to new replies.