Thank you, this works for me 100% woohoo
Are there any plans for Woocommerce categories to be included in the menu?
Thanks
JC
Thanks Borgdan,
To list the features one would need
– Set global advert tag (like adsense) for background by virtue of YES/NO option then area to insert JS/html
– Set global fallback background colour and/or image (this is in case there is no banner displaying)
ON CATEGORY LEVEL
– Set advert tag for category and posts in that category by virtue of YES/NO option then area to insert JS/html
– Set category fallback background colour and/or image (this is in case there is no banner displaying)
By having this either globally it can be enabled or only per category.
The site I have on now uses Adtech by it’s part of Google’s DOUBLECLICK FOR PUBLSIHERS DFP, same as adsense but publishers manages it themselves and all of them require this so going to have to do the workaround for all of them.
Thank you for considering this for the update and all your support.
Regards
JC
I solved it for the products and list woohoo! (or so I think)
The default is width:100% for both, so I changed it to:
PRODUCT VIEW:
.woocommerce div.product div.images img {
width: auto;
}
CATEGORY / LIST VIEW:
.woocommerce ul.products li.product a img {
width: auto;
}
IT WORKED!!! (for some strange reason, I solved it hahaha)
-
This reply was modified 10 years by
tripledm.
Ok thanks. It is a bit of a pain as products (some) have huge images both on product view and on the list/category view. The hunt goes on for a solution otherwise will have to re-do all the images.
Thanks
Thank you!!!
thank you!
I have figured out that it does that for all posts without images. But this client does not use images so not sure what I am going to do.
It’s by default like this and does this on other installs as well. I am from today on 4 sites with Newspaper theme and another 2 coming this week and I suspect they will all have this problem.
REF setup
– clean WordPress install
– clean Newspaper theme install
– NO CDN network
– Cache cleared, completely cleared and tested on multiple browser.
– all plugins off (accept visual composer) no change
– FRESH new clean isntall of Newspaper Theme, no luck.
SO I am back to square 1 but will make do with the module/block that does not cause problems. It’s only BLOCK 21 with the error.
Hi Bogdan,
We are getting closer 😉
Ok, so the colour to get it boxed thanks, that is going to help then I don’t have to set an image.
Think of it this way, having ADSENSE as a background, so ADSENSE has advert tags and one for a background advert “takeover” as they call it. I need to have that as a background but selectively.
For now I am fine, I have hard coded the adsense (similar) tags in and set the categories where they need to display with a background image and the images are set to not display so they are not visible over the adverts.
If you look on this page, the background you see is an ADSENSE advert tag, the HEADER banner is it’s own advert adsense tag.
http://www.thesouthafrican.com/wine-south-africa/
I guess what would save time is to explain it this way…
Instead of just having image option for background, have adsense or your own JS/html insert option global and then also per category. Hope this explains it 😉
Sorry, this is an example link
southafricanshop .com /buy/liquor-store/beer-cider
you will see the image all different sizes and as it’s bottles, well, they huge instead of all organised.
I downloaded the theme last night, so whatever version is in there that is what I used to install everything. So not sure what is missing or what not bout out the box there is an error.
What I have done is setup a clone of the home page, just to show you.
BLOCK 21, via VISUAL COMPOSER, only thing I have done is install your theme on a clean install of wordpress and imported posts via export from old site and used themepanel to install plugins. NOTHING more NOTHING less.
awcs . tripledm.com /home-test/
See above (without spaces) and if you want a login I can send it to you. I DO NOT USE any additional plugins this is a stock standard installation.
I don’t think we are on the same page.
Background image is to get the site boxed. Your theme is going on to a second media site in a month and if I don’t solve it have to use another.
So to repeat myself, background images cannot be used. Why?
Advert tags are used. Why?
Geo targeting, impression control & reporting.
Multiple background click ads = not possible.
For now I have set it global to display:none so it’s fine. No worries there I have solved it and will get someone/contractor to add it in via php/background file as css can be applied or a class via php based on category and the category a post is in. I just don’t think you are understanding what I am requesting.
Thanks for you time, I do honestly appreciate it 😉
OK but this is what I was referring to at the beginning. That will target as example category “96, but not the posts within it, only the category.
REF ERROR, that’s the stock standard theme, no mods done. Just setting BOX 21 via visual composer generates the error
Thanks Alin, I have changed some of the css on block 9 to reduce space ect. I will dig into modifying it later maybe pick some php from the other blocks to this one lol.
My other option is BOX21 and it can display with placeholder image BUT,
I get an error when I have this enabled:
td_api_base::mark_used_on_page : a component with the ID: thumbnail is not set.
////wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Hi Bogdan,
That’s awesome thank you!
I can find the category ID, just one question, how do I apply css to that category or categories only?
All I then need to do is add .backstretch {display:none;} css to the specified category. Then, the image won’t display but the theme will be boxed and background advert will run perfect.
Thank you in advance!
PS: buying another licence today have another site going up, number 3 for me with your theme
thank you this worked for me as well
would be great to have an option in admin to allow html in copyright section / footer but I have setup child theme so good for updates for now
I have also added in the year so that it updates on it’s own
echo ‘© ‘, date(“Y”), ‘ ‘;
Space at the end added… it works but not even sure if I have done it correct lol
-
This reply was modified 10 years by
tripledm.
Hello,
We use a advert tags for background adverts from an advert network.
So, the problem is the theme does not appear in BOXED unless an background image is set.
So if a background advert is set to run via the JS tag then currently I have to:
1. set the advert tag to display via advert manager (not the site, it’s on ad manager account with Adclick similar to Doubleclick for Publisher by Google)
2. set a background image in the theme (this is so that it displays boxed)
3. set a background colour (this is for IF the tag, via geo targeting is not displaying for the customer)
4. set .backstretch to display:none;
My it’s number 4 my questions is related to…
How to set the below to run on for a specific category and posts within that category:
.backstretch {display:none;}
Not for the entire site, just that category and posts within that category.
Hi Bogdan,
Thank you for the response.
The problem is it’s not just the category.
As example it will be the NEWS category and ALL posts in that category. If it was just the one category or post it would have been possible with your solution.
How do I target css to apply to a category and all posts within that category?
Thank you in advance
Regards
JC
Hello,
I have tried that with no luck. A bit of a manual workaround is doing the job at the moment.
<div class=”backstretch”></div>
That class has a Z-index, css as follows:
.backstretch {
width: 100%;
height: 100%;
position: fixed;
z-index: -99999;
top: 0;
}
Changing the value made no difference so I have set it to display none:
.backstretch {
display: none;
}
I don’t know how to set CSS based on category and a post being in the category but at least when we have a background advert I can set an image for it so the site displays boxed and the display:none hides the image and advert is visible.
It’s working on this page: http://www.thesouthafrican.com/lifestyle/
Would also be good to be able to just have the background behind the advert tag but have no idea why it’s not working as it has no z-index.
thank you for your response
Hi Emil,
I have paid a professional developer today and after the entire day he said it cannot be scripted in as the action is triggered, for saving and converting to your format, when SAVE POST is clicked. So I have to go back to my client with two options; pay someone to manually copy and paste the video URL and save and change format to VIDEO, or back to old theme. Honestly I had a contractor on it all day and multiple tries failed and a second one I requested support from today via peopleperhour.com knows your theme and also said it’s not possible.
Hello, that is not related to the background, it’s ReEmbed video plugin that plays over videos that is causing those errors. With it off the error you see while inspect element is gone.
OK maybe current one was not a good selection as it’s a video, was normal ones. SO, if it’s got GREY and it’s a normal feature image am I correct in assuming it’s then not HIGH or WIDE enough, and what I can gather your perfect/average size is 1068px by 713px. I need to give the client a set size that will work with your theme plus Facebook will display it correct.
Hello,
The ojbective is to have advert tags in background, I have another post for that so might be doubling up so please ignore this one.
