Well, keep in mind ‘hacking’ the theme or any theme will need to be redone each time you update theme; same if you add custom functions to your functions.php — advanced users create their own plugin and put all their functions in there to survive theme updates — you can google that.
Anyway, here is something I did for one site to add top of page banner above menus … this is for only printing ads on posts and not on pages or indexes (indexes have a simple sidebar ad top of sidebar instead).
Anyway…. not sure this will print on this forum due to the php query, but here goes … I made a custom css class to control padding, background color and bottom border and align center:
<?php if ( is_single() ) {?>
<div class="neotopper"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="MMMMMMMMMMMM"
data-ad-slot="NNNNNNNN"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<?php } ?>
Chrome has built in ad blocking being tested, depending on your settings and version and locale.
Check your Chrome version and settings, as most likely cause. Try clearing history/cache in Chrome, and make sure you have latest update.
No. Code entered in Theme panel -> Custom CSS after update the Theme not be removed.
I got it to work! Thanks for the instructions!
If I update the theme later on, will the custom PHP code I added be removed?
Hello Chris S, 🙂
As I said above, I reinstalled a wordpress all clean, I then add the theme I downloaded from envato and then I added my plugins one by one (I scanned all these plugins on virustotal to be sure that there is no malware). And I see that today sucuri tells me that all is well! Coool ^^.
I think he had to remember my previous scan.
Otherwise I followed your topic on secure wordpress:
– I changed all my passwords by putting very strong passwords for my FTP account, my database and of course my wordpress account.
– During the wordpress installation all clean, I changed the table prefix which was wp_, which I think too sensitive. So I put 15 characters (uppercase, lowercase and number) before the “_”.
– I deleted ALL the plugins and theme that I do not use.
– I added a plugin that backs up my database and my ftp every day, and that sends it to me on drobox and a remote ftp.
– I also have a plugin that automatically updates ALL plugins updated if necessary.
– This morning I added a plugin named “WP Cerber”, which protects me well wordpress and blocked me attempts to intusions (131 ip blocked trying to access my wp-login page when I disabled it)
– I also have the plugin Shield Security, do you think there would be conflict in both ???
I think now I’m secure, what do you think?
I really want to thank you for the help you have been able to bring me
UPDATE:
https://imgur.com/3X22Rrc
I use this code and text in block 14 is not white. Also if someone can help how can I write code for this to apply on single category? Where i need to put category name?
.td_module_mx1 .td-module-meta-info
.td-post-category {
background-color:#005689!important;
text:#ffffff
}
.td_module_mx2 .td-module-meta-info
.td-post-category {
background-color:#005689!important;
text:#ffffff
}
Hello ipekg89,
Unfortunately, we know about this problem, it was added to our list of fixes and we will consider to fix it in near future updates, sorry! It seems to be a strange problem with the homepage of this demo. A quick solution would be to create a new page and copy/paste the shortcodes from the old homepage to the new homepage, save it and check the results. Should work as expected. Please try to follow the next steps -> https://www.screencast.com/t/xIt5MWAw
Thanks for your understanding!
Hi,
In order to have access to the reviews, a contributor needs access to the entire post settings and theme panel as well so if this is something you need, try to use a role manager and give the permissions you need to the contributors from the plugin settings. It is easier than editing the theme core files and having to re-make the modification after each update because it will not work through a child theme.
Thank you!
Thank you Chris, this was my idea before they started talking about using other methods. I had asked them what Custom CSS code can I sue (custom CSS in order not to get overwritten when the next update comes along). They did not provide this info and the problem is I am not a programmer and do not know their code.
If you could please give me the code you added, I would be eternally grateful.
Thanks.
UPDATE: issue fixed.
Hello,
It is up to you if you want to use the patch or not. Usually the patch is used if you made modifications in the theme files. If not you can simply use this simple method to update: https://forum.tagdiv.com/how-to-update-the-theme-2/
Thank you!
Hello,
I’m trying to install the tagDIV composer within my admin panel but i’m redirected to a page that says “I don’t have access”
Yes, I’ve already updated and verified my purchase code.
Just purchased this theme today and this is the first bug..Not looking good.
Hi,
So the Visual composer editor is not working properly. Check the theme system status and see if the server and WordPress parameters are set according to this guide
– https://forum.tagdiv.com/system-status-parameters-guide/
Deactivate the Visual composer and delete it, then install it again from the theme package
– https://forum.tagdiv.com/how-to-update-visual-composer-plugin/
If this does not have any effect, deactivate all plugins except the theme plugins, clear any caching installed and check again.
Thanks
Hello
I need to update my template from version 8.0 to version 8.1. Should I reinstall the entire “Newspaper.zip” file? Or just the patch?
Yes, if you dont update wordpress or plugins or themes when security patches ate released, you may get hacked.
See my [tutorial] post on learning to secure your site and also fix your hacked site.
Good time to implement security policy for using wordpress!
Things might break with new version of WordPress, other plugins with bugs (e.g., Yoast had several updates this month — 3 I think), etc.
Anything that “suddenly stopped working” is not due to theme.
Theme cannot “upgrade” you without your permission — you would have to do that, so not sure why you thought you were being forced to do anything at all.
Visual Composer won’t update unless you upload the new version included with theme download; it can’t be updated via WP admin panel unless you buy your own copy of it.
So — if you are ‘suddenly’ having problems, might be worth doing normal debug practice — try checking error logs, disable plugins to see what might be causing it, check page for errors with F12, check for any external elements not loading and breaking things, etc.
Anyway — I don’t work here; just some more feedback. I’m out on this one!
So then I don’t understand why visual composer is no longer working on my site.
And when I click on the visual composer icon it opens up the site to purchase it… the plus icon opens the add element window but when i click on one nothing happens… and when i click on the templates icon the window opens but nothing happens with that as well
And as far as being forced to upgrade / update… that IS happening all over the place. But I do apologize for my assumptions. I was reacting to the fact that my client’s site is no working like i was 2 weeks ago… and i NEED it working.
You need to do all the steps in my security post, as even re-installing your theme and WP might not remove items in your ad boxes in theme panel, or in dbase. Those will still be there, so you need to do *all* the items from my post, or similar ones to ‘clean’ your site.
The theme itself has no malware. Your site itself has malware due to a bug in either older version of theme and/or insecure versions of WordPress core. So, when theme and WP not updated for security fix this allows your site, and possibly database to be hacked with malware.
Items in your database are not part of the theme files you download from ThemeForest.
Thanks bodgan. Both code worked but worked without !important (via Theme Panel>Custom code) Thanks for quick reply. I hope that comes as a setting in Theme Panel in next update (I am sure your already busy with alots of other features but anyway..)
Thanks
I haven’t done anything to the home page since sept 11 when i updated the Big Grid slider.
I installed woocommerce.
and that’s it.
i tried deactivating woocommerce and it still isn’t working.
all i get is the visual composer header and nothing else. i tried clicking on the “add element” and when that opens i try to select an element but nothing happens.
this is a client’s site… so i don’t make too many of the upgrades or updates to it very often because i don’t want it to all of a sudden BREAK the theme (like it just did). So i have no idea what happened or how it happened.
Is there maybe any update in this issue? Need to show more categories and to change their order (not alphabetically)…
Trending Now or New Ticker (I don’t know what do you call it.) I want to hide it on mobile. Would you please add that option on Theme Panel on next next update, and for now would you please tell me a proper css code to hide it on mobile with no white space when it’s display: none;
Thank you
Hello SnakeEater,
First of all, you should make a full backup to your file to avoid any loss of information and then, you simply update your WordPress via FTP way. So, please notice that the child theme comes bundled with the Theme Packet and not depend on the WordPress version, sorry!
Thanks for your understanding!
Hello Chris and Bogdan.
Unfortunately i do not use any cache plugins so this can’t be the problem. When i am logged into admin, everything seems working perfectly. But when i logout of the admin and visit my website, the front page show post from last July 2017, after that nothing, and we update everyday as it is a news website.
As for updating the latest version, i see comments for other who experience more problems after updating, that is why i feel reluctant to upgrade.
Hello,
Why do people think we are forcing anyone to do anything? If you want to use visual composer…keep using visual composer by all means and disable the tagdiv composer. It is not mandatory plugin by any means. We kept the visual composer compatibility and visual composer will still receive updates so you can use it just as before.
Thank you!