Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.7k views
in Plugins by

The following code does not work when the Simple Ads Manager add-in is activated. I've tried so many times. I'm sure now. How can I solve this? Can you help me?

<!doctype html> <html lang="en"> <head> <meta charset="utf-8">

 <meta name="viewport" content="width=device-width, initial-scale=1">

 <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">

<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> <meta name="mobile-web-app-capable" content="yes">

<meta name="apple-mobile-web-app-capable" content="yes">

<meta name="theme-color" content="#2980b9"> <title>React Uygulaması</title>

Q2A version: 1,8,2
by
1. Exactly where are you adding that code?
2. What is the URL to the Simple Ads Manager plugin?
by
Add to admin / layout Head section.

https://github.com/arjunsuresh/q2a-simple-ads-manager
by
Then that code is wrong for many reasons. It is declaring a new page (while inside a page), it is using a placeholder "%PUBLIC_URL%" instead of your site's URL and it is even declaring another title over the one Q2A has.

What do you want to do with that code?
by
Adds this code to the home screen on your android device when the Simple Ads Manager plugin is canceled. Like mobile android application. Do you think I should write full address instead of public url?

1 Answer

0 votes
by

According to what I'm reading you still require some JS in order for the app to be full screen.

In my Android device (I took a quick look at this) I only see the change in the background of the navigation bar. Main reference: https://developers.google.com/web/fundamentals/native-hardware/fullscreen

The code should look like this:

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="https://yoursite.com/manifest.json">
<link rel="shortcut icon" href="https://yoursite.com/favicon.ico">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#2980b9">

Add it to: Custom HTML in <head> section of every page

Bare in mind this is assuming you have the appropriate manifest.json and favicon.ico files in your site.

by
I think you translated the code in your comment (e.g.: içerik).

What I'm saying is that if something is not working when enabling the plugin then check the settings of the plugin. You might be adding wrong HTML in the plugin settings. That is why it is not working
by
<center><style>
.example_responsive_1 { width: 100%; height: 90px; }
@media(min-width: 500px) { .example_responsive_1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .example_responsive_1 { width: 700px; height: 90px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 300 250..... -->
<ins class="adsbygoogle example_responsive_1"
style="display:inline-block"
data-ad-client="ca-pub-000000000000000"
data-ad-slot="00000000"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></center>

I understand. I'm just using the @media sizing code. I'm going to try removing that code. Thank you so much.
by
That snippets has invalid HTML. The STYLE tag can only be in the HEAD section. I also took a look at your site and noticed that you have LINK tags in the BODY and they should also go in the HEAD section.

If you want to know all the errors in your page, look at this: https://validator.w3.org/nu/?doc=https%3A%2F%2Fneyseya.com
by
thank you. @pupi1985
...