First: My website has a button that opens a pop-up for users to report content. How can I use code to check if the page is single.php and, if so, trigger the Newspaper theme’s modal popup when the button is clicked? I want to use my custom code. I use various single templates, so the best solution would be to do this via functions.php.
Second: I have a custom-made shortcode, but it doesn’t execute properly on mobile devices when using the Newspaper theme. How can I resolve this?
https://www.abctudo.com.br/campeonato-brasileiro/ but worst in this url https://www.abctudo.com.br/proximos-jogos/?time=S%C3%A3o+Paulo+FC
Third: This same shortcode generates a table, but it’s not responsive in Newspaper. How can I call a responsive table directly through Newspaper’s code?
Fourth: We have a custom post type that also doesn’t appear in the Newspaper theme on mobile devices. How can we fix this? This post type displays current traffic conditions, so not having it on mobile is a major problem for us.
-
This topic was modified 2 years by
danilloleite.
Hello!
1. Check this guide: https://forum.tagdiv.com/modal-popup/
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/.
2. I think you should add the style as well in the raw html or raw CSS. A shortcode can be inserted also by using the element called “Column text” or “Text with title”. “Column text” and “text with title” elements have a button called “edit content” and if you click on that button, the WP Editor will open, and you can add some text/code/shortcode there. Close the WP Editor from X, save the changes from Composer and view the page to see the changes. It could be possible to be a conflict there, that’s why the shortcode do not display as you want. Please check.
3. You should build it to be responsive from the plugin source. Or you can use some CSS style added with the help of a raw CSS element from the tagdiv Composer. Check the guide: https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
4. We have 3 options available for mobile versions that you can use:
1. Responsive version: A responsive version of your website looks similar to the desktop version. TagDiv Composer is used to edit the page.Click on the mobile viewport: https://www.screencast.com/t/XDQJedlggSB. There, you can see your mobile version and edit or adjust the elements to look better.
2. Mobile pages: https://tagdiv.com/newspaper-10-3-7-update-brings-customizable-and-fast-mobile-pages
3. Mobile theme plugin: The Mobile Theme is a performance-optimized theme included in the main Newspaper theme that only loads on mobile devices. It comes with its own templates and designs for pages, posts, categories, etc., so your current templates from the desktop theme will get converted to the mobile theme layout. Please see https://forum.tagdiv.com/the-mobile-theme/ and https://forum.tagdiv.com/mobile-theme-introduction/ for more information.
A full explanation is here: https://www.youtube.com/watch?v=SpGkOnJeNZY
If you need to use mobile version 1 or 2, then you need to uninstall the Mobile Theme plugin and AMP.
Thank you!