Compatibility All In One Seo + Custom Shortcode + Menu/Submenu

Posted in: Newspaper
Post count: 9

Hello, please help me figure out the following NewsPaper settings.

1. Compatibility All In One Seo + SpeedBoost
Screen 🙁
https://prnt.sc/nxmfwj

2. For AdSense I’m using shortcodes in the following way:
In post’s – [adsense]
In files “functions.php”:


function vstavka_context_adsense_top()
{
return '<!-- Добро ЕСТЬ! - Медицина - 336x280 -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-**********"
     data-ad-slot="5076432727"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
}
add_shortcode ('adsense', 'vstavka_context_adsense_top');

But, in mobile theme (plugin) this code dosn’t work.
I’m put this code in files td-mobile-plugin.php, td_panel_settings.php, td_mobile_theme.php, but my site stops working.
I have a lot of articles, and ads look great with these shortcodes. What can you think of where to insert it? It is very important!

3. My menu has a submenu (not a mega-menu). Location – “Main”
However, when viewed from a mobile phone, only the main menus remain, with no submenus!
If you turn on the mobile plugin, then there is a menu and submenus. However, shortcodes AdSense do not work with the mobile plugin. (question – 2)

Thank you!!!!!!
WP 5.2.1 (site: https://medicina.dobro-est.com)

Post count: 20688

Hi,

1. The booster will not be active it it detects plugins that are not part of a predefined list, set in the plugin code – http://prntscr.com/nxtt2m The check could be disabled, this is a similar topic – https://forum.tagdiv.com/topic/tinymce-advanced-and-other-various-disabling-speed-boster/

2. The mobile theme has it’s own functions file, try entering it there
http://prntscr.com/nxtv2a

3. There is an issue in the latest theme version, the sub-menu arrows that should appear in the mobile menu modal are hidden. The fix is to enter this code in the theme panel custom CSS section

.td-mobile-content .td-icon-menu-right {
display: inline-block;
}

Then they should appear – http://prntscr.com/nxtxu0 Sorry for the inconvenience. Let me know if you have more questions.

Thanks

Post count: 9

Hi,
1. It’s work.
2. It’s work.
3. It’s work.

——
4. But, if I’m use mobile plugin, and when I go to menu, on page – nothing is shown.
In my menu, I use links to a page, not just a rubric. So here’s the page, there is nothing shown – only the header and footer of the site. https://drive.google.com/open?id=1UT4vbume0tsp8OeIgFmDm3EwjLk0hAs6

5. Another logo appeared in the header of the site. https://prnt.sc/nxvaf0

Thanks!

Post count: 9

5. The arrow in the lower right corner to turn the page up also disappeared 🙁

Post count: 20688

Hi,

4. When the mobile theme is enabled, you will have to create 2 versions for each page. One for desktop with the composer or in any way possible, and one for mobile with the simple mobile editor (can’t be built with the composer)
https://tagdiv.com/mobile-theme-automatic-optimization-for-mobile-newspaper-theme/

Mobile pages will be empty if no content is added in the mobile editor found in the page edit screen (should be at the bottom)
https://www.screencast.com/t/sE6as7bJLAq
An exception is the mobile homepage which will show a top grid displaying featured posts
https://forum.tagdiv.com/featured-posts-2/
Below it there will be a latest articles section.

If the mobile theme is not active, then the same content from desktop will be displayed on mobiles as well.

5. The issue with the logo seems to be caused by the speed booster plugin, after deactivating the check. The desktop logo shouldn’t appear on mobile. I could give you a quick fix for it – http://prntscr.com/ny8l6j

@media (max-width: 767px) {
.td-header-style-1 .td-header-sp-logo {
display: none!important;
}}

The code can be entered in the theme panel, custom CSS section.

The scroll to top arrow displays when the mobile theme is active. In the default responsive version it doesn’t appear – https://forum.tagdiv.com/topic/scroll-to-top-mobile/
I believe this will be changed in a future update, so that it will appear by default in the responsive version as well.

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