Hello, I have two questions regarding the theme (which is great) for my site: MoschatoTavros.gr
1. Mobile theme appears in tablets too. I tested two tablets. The first one is chinese (Teclast) and the mobile theme showed right away. I suspected that it was due to tablet’s fault, as it is fairly cheap, so I found a Samsung Galaxy Tab to test the site too. When I logged in for the first time, the desktop theme appeared, I clicked on a post and everything was fine, but when I clicked on my logo to go to the home page again, the mobile theme appeared.
I’ve configured the cache plugin exactly per your instructions.
2. I want to put a 728×90 Google Adsense ad in every post, page and category page of my site, like the one I have in my homepage. I don’t mind the code whether it’s html or php. Is there any way to do it?
Thank you.
Oh, and another question that I wanted to ask:
In mobile theme, when you enter a category page, it show some of the other categories right after the header. Is there any way to hide this section and the categories. Because some of the categories I have in my site are obsolete or created for other reasons and I don’t want them to show in public.
Thank you!
Hello,
1) This issue is cache related if the cache settings are not set properly, then the mobile theme can even show up on desktop. We have seen this also in some cases. There are another 2 caches you may have besides the plugin. There is a cdn server if you use it and some hosting providers have cache from the server side that some users are not aware of. Pleas also check these and set them properly and then test the site again.
2) You can use the theme ad spots to do it to soem extent. a header and footer ad will show up on every post/page/category but content ads are handled for posts by the article ads: https://forum.tagdiv.com/article-ads/ and the pagebuilder adbox element on pages. CAtegories do not have content ad possibilities except for sidebar ads.
As a note, you cannot have article ads or content ads of 728 px width because the main content width when using a sidebar is 696 pixels. you can only have 728px ads inside the content if you do not use sidebars.
3)The sibling categories can be removed with css if you use this code in the theme panel->custom css box:
@media(max-width:767px){
.td-category-siblings{
display:none!important;
}}
Thank you!
Thanks for your reply.
1. I don’t have a single clue of these things. I’ll try to work it out myself. But it’s weird because when I uploaded the new theme on Saturday (the website is 6 years old and had another theme), I was the first visitor via tablet. How is it possible to be cached and see the mobile theme? Also, as I said before, when I used the Samsung tablet, at first I saw the site fine, the way it was supposed to look. But when I hit the home button via the menu, the mobile theme appeared. So, if it was something about cache, it should display the mobile theme from the start and not after a while, right?
2. I wasn’t very clear about it. I’m aware how to set ads in the predefined spaces, as you’ve done an excellent job to make the interface very easy. I want to display ads after the header, as I point in the following screenshot: http://i.imgur.com/ukhxM2Q.jpg
3. The code works. Thank you!
Hello MoschatoTavros.gr,
1)However, I suppose that this type of problem is cache or CDN related. Please try to clear all of them, purge CDN files if you are using the CDN system and also, please try to clear the server cache. If you do not have any access to do it, please request this thing to do from your hosting provider. Also, if your problem will still there, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further inspect the issue. Also, please provide the link of this topic so we can easily identify you.
2)I suppose that you want to display the ads after the main menu bar, for every post,page and category page, right? Please notice that our theme does not have such an option to add this but only with a bit of coding. The only way to add a banner ad above the menu is using the do_shortcode method which you will have to add in the corresponding file for page/post/category template. For example, to display the add to the category pages, can simply use a do_shortcode function in the category template like so: http://screencast.com/t/3AhOEXNl9lPl
<div class="mycustomclass">
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
</div>
It will need a few css adjustments to remove the bottom margin and add a top margin for it to position properly so you can use the custom class assigned to the div element.
To affect the posts pages you will have to add the core file corresponding to post template used by you and then add the do_shortcode there, like this -> http://screencast.com/t/nbArnFDgR9yc
In order to achieve best results, please check your custom Ad 1 to have added a valid ad code in it, like this -> http://screencast.com/t/ZwBAoy3zAKo
If you are not aware of the steps in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!
Hope this helps!
Thanks for your understanding!