Plugin Contributor
WPtouch
(@wptouch)
Hi @airdrummer,
Sorry to hear about the trouble you are having. If the content on that page is added directly to a custom template file, and the template file is in the desktop theme, then WPtouch won’t be able to ‘see’ the template file and the content in it.
Let us know a little more about how the content on the page is being added and we’ll have a better idea of why it’s not showing up in the WPtouch theme. Thanks.
i have placed links to my single-download.php for my edd download pagetype
(https://easydigitaldownloads.com/)
into the bauhaus directory, where wpt finds it just fine, as well as news.php, but the archive.php link seems to be ignored
these are the links i have in ~/www/wp-content/plugins/wptouch/themes/bauhaus/default:
news.php -> ../../../../../themes/lalo/news.php
single-download.php -> ../../../../../themes/lalo/single-download.php
archive.php -> ../../../../../themes/lalo/archive.php
archive-download.php -> archive.php
category.php -> archive.php
tag.php -> archive.php
taxonomy-download_category.php -> archive.php
taxonomy-download_tag.php -> archive.php
as i said, my download pagetype displays correctly in both single-download & thru a shortcode, but the template hierarchy doesn’t seem to work for https://letartliveon.com/downloads/tag/is-artist-name/
or
https://letartliveon.com/downloads/category/genre/landscape/
the template hierachy is supposed to default to archive.php, which is the template used in desktop mode. is there any debug output in wpt i can turn on?
-
This reply was modified 7 years ago by
airdrummer.
Plugin Contributor
WPtouch
(@wptouch)
@airdrummer,
WPtouch free does not officially include support for custom page templates. We haven’t seen this type of setup before, so I couldn’t say why archive.php isn’t kicking in like the other templates.
You can enable WordPress Debugging to see if the logs show where things are failing. You can enable it per the instructions here – https://ww.wp.xz.cn/support/article/debugging-in-wordpress/
i’ve enabled debugging per wp instructions, but there are no errors, simply no output from archive.php
btw, most of the debug contains warnings:
Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in ~/public_html/wp-includes/functions.php on line 4773
all on wp;-\
Plugin Contributor
WPtouch
(@wptouch)
Are your links symlinks? How are you linking to the templates in another directory?
correct: symlinks, which work for my news.php & single-download.php templates, but not archive.php