top margin

Posted in: Newspaper
Post count: 20

hi,
I have put my custom ccs in the panel:

.td-boxed-layout #td-outer-wrap{margin-top:80px;}

to see is a strip of ad background image but the ad link is active only at the sides of the site/boxed and not in top. How can I activate the click link also at the top

thanks

Post count: 23312

Hello sonoria,

Please try the code below and fix the problem. You have to use only the top position, without margin, and the click ad will function.

.td-boxed-layout #td-outer-wrap{
top:80px;
}

Result is here: http://screencast.com/t/xDYUHb3qP .

Hope this helps!

Thank you for message!

Post count: 20

work fine! I’am a chicken 🙁
thank you Catalin

Post count: 20

hi,
sorry but how can I do if I want to put the top margin (80px) for the only pages that have a background image?

thanks

Post count: 22421

Hello,
You can use the page id as a class in css. You can get the page id with the browser inspector:
http://screencast.com/t/RqcVAwxX758b
Then you can use the code provided above like so:
.page-id-1260 .td-boxed-layout #td-outer-wrap{
top:80px;
}

And use the code like so for multiple pages:

.page-id-1260 .td-boxed-layout #td-outer-wrap,
.page-id-1261 .td-boxed-layout #td-outer-wrap,
.page-id-1262 .td-boxed-layout #td-outer-wrap{
top:80px;
}

Thank you!

Post count: 20

thank you Bogdan,
I tried it with the style described but not working.
But I’d rather handle it through php code like this:

if(!background_img) <style>.td-boxed-layout #td-outer-wrap{top:0px;}</style>

Post count: 22421

Hello,
The code I provided does not work for you. It is just an example. You need to identify your own page id’s and replace them in the code. We prefer to use css for modifications that can be made through css as the php code will be replaced when updating the theme. The css stays in the theme panel and does not get affected by updates.
Thank you!

Post count: 20

hello,
this code work fine
.page-id-XXX #td-outer-wrap{top:80px;}

I also prefer to use css, but my problem is that I have two different img backgrounds ad, one for the home page and the other for the posts page, and every new published post I should enter the css code in theme panel.
So, I should have two ad img background with the respective links, one for home page and one for the posts page.
All other pages should have no background img ad and #td-outer-wrap{top:0px;}.

thanks

Post count: 7909

Hi,

The theme has an option to add a site wide background and also you can add a specific background for each category. The articles will inherit the background you set on their category from panel – http://screencast.com/t/BmaWZkk3HyM
If you want to add it individual, it can be done via custom css like Bogdan stated above. So if you want to add a specific background for your homepage you can target it using .home class instead .page-id-xxx. For post pages you can use .single as general class for all your post templates.
There is no option to add 2 different background ad links in panel and you will need cusotm modifications for it and I suggest to get someone to help you with this as we cannot provide custom work at this time.

If you have other issues related to the theme please note that we will get in touch with you Monday – http://screencast.com/t/5EQlEtXSFCp

Thanks for understanding! Happy new year!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.