To insert code use <code>...</code>.
Google Adsense
  • I'm interested in placing a 728 x 90 Google Adsense above my content and sidebar at http://source-pro.org

    I'm trying to lower the content area and sidebar on just the posts.

    How would I do that?

    Thanks!
  • 20 Comments sorted by
  • Hi,


    for the idnr you should look into the page source code.



    .page-id-<nr> #page .inner {
    padding-top: 100px;
    }




    .post-id-<nr> #page .inner {
    padding-top: 100px;
    }



    .single #page .inner {
    padding-top: 100px;
    }


    How you are gonna embed the google adds in there? This only brings the content down.

    Best regards,
    Paul
  • Paul

    What is ?

    I tried inserting your suggested code and my content didn't move...

    For inserting Adsense I was planning on using CSS to reposition the existing Adsense ad.

    Michael
  • Hi Michael,

    Did you also add the correct id numbers?

    On what page did you want this to happen?

    Best regards,
    Paul
  • I'm not familiar with nr that's in the code.
  • Hi Paul,

    Wow - I have to do this for each individual page...?
  • No,

    It depends on what you want.

    Best regards,
    Paul
  • All posts...

    How would I do that?

    :)
  • Use the .single example.

    Best regards,
    Paul
  • Actually...

    All posts and pages, except the index page.
  • Paul,

    I added .single #page .inner {padding-top: 100px;} into my Striking/General/Custom CSS and it had no impact...

    Suggestions?

    Michael
  • Then use


    #page .inner {
    padding-top: 100px;
    }



    And for the home page


    .page-id-<nr> #page .inner {
    padding-top: 40px !important;
    }



    replace the <nr> with the correct number


    or if you did not build a static home page use..


    .home #page .inner {
    padding-top: 40px !important;
    }


    I believe you really should start googling on how the wordpress system works, css and html.....

    Best regards,
    Paul
  • For example...

    #page .inner {
    padding-top: 100px;
    }

    Does not work. In fact I had previously tried that. so knowing more about how wordpress works does not solve this problem. It's a Striking code problem.
  • Hi

    It does work at my website. Just tested it.

    I did ask you if you use a static home page or not. If not you should use the .home for the home page.

    Image and video hosting by TinyPic

    Best regards,
    Paul
  • I'll play around some more.

    But Paul thank you for hanging in there with me!

    I appreciate your help and respect your time.

    Michael
  • Hi Michael,

    It should be working.

    Do me a favor. Remove all custom css code. Just make a copy of it and put it in a save place.

    Now insert only that #page .inner line if it does not work you will have cache problem or a cloudfare problem or any other plugin which overrides that code.

    Btw Striking is the most easiest theme on tweaking css. And i have seen many themes.

    Best regards,
    Paul
  • Paul,

    Great idea!!!! I'll try it right now!

    :)
  • You were right!

    Without the custom css it worked.

    Now it's time to look at the custom css...
  • Hi Michael,

    I just looked at your custom css coding.

    You made a error in your custom css code.


    #page .inner {
    background: #FFFFFF;
    padding-right:20px;
    padding-left:20px;
    margin-bottom:-30px;
    border-left: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    { <---------


    Because you did NOT CLOSE this piece of css correctly all the other code after that point stopped working.

    This was a user error caused by yourselves

    Best regards,
    Paul
  • Paul,

    You're right!

    I stand corrected and I apologize!

    Michael
  • Hi Michal

    I ask that you please be careful with your choice of words in respect of your requests, and comments. Striking uses the very latest code in respect of css, js and php. Most of this is to accommodate the huge variety of options provided in Striking, and at the same time, maintain legacy, for older version of wp, older browsers, and prior versions of Striking.

    If a user wants to engage in advanced customization, it is incumbent upon the user that they understand quite thoroughly the framework and context in which Striking is coded. Once one gets into a robust premium theme such as Striking, some aspects of how to customize vs what one might be used to in either free frameworks or simple premium themes, change due to the coding we have employed.

    I am closing this thread. Should you have other customization requests they should each appear in a diff thread, and be marked customization, so that community members can discern their nature, and whether they wish to contribute.

    Best Regards
    Striking Team
    James
This discussion has been closed.
All Discussions