Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #79225
    Chatfield Court
    Participant

    I always write my posts with the content aligned left. Suddenly, tonight, the post content is aligning center (on all my posts). It looks good in the edit post but my live post on the page is aligned center. This has never happened before, is it something with the theme?

    Thanks.
    Kristi
    chatfieldcourt.com

    #79287
    Sakin
    Keymaster

    @chatfield-court: It’s because of adsense code. You have started <center> code and instead of closing it you have again open <center> code. So, either remove that center code in the following code:

    <center><div id="adsense"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- chatfieldcourt.com_300x250top of post -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:250px"
         data-ad-client="ca-pub-3962782087565969"
         data-ad-slot="3724409336"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
     </div><center>

    Or make that closing like below:

    <center><div id="adsense"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- chatfieldcourt.com_300x250top of post -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:250px"
         data-ad-client="ca-pub-3962782087565969"
         data-ad-slot="3724409336"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
     </div></center>
    #79298
    Chatfield Court
    Participant

    Thanks for, once again, saving me Sakin. It worked. Everything was fine until I did the theme update the other day but it’s good now.

    Thanks again.

    Kristi

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Content suddenly aligning center’ is closed to new replies.