Closed paoloramos closed 5 years ago
Same issue for me on 4.4.2 using php's built in webserver.
Should note this is a clean install, very first thing I did was install and activate onepager and this issue is here. no other plugins or themes.
Did you use? npm install bower install composer install gulp
npm install ~ gulp
not necessary if you are installing the plugin from WP admin.
@anakinjay Can you PM your site details on our Gitter chat ?
Same issue, v: 1.2.5 wp: 4.7.3–pt_PT
@codexpert it happens when the template overwrite the onepage.php
, then the dropdown value become onepager/onepage.php
.
I've added to quick tests in the meta.js file.
// ...
function enableOnepagerHandler() {
if ($pageTemplate.find('option[value="onepager/onepage.php"]').get(0)) {
$pageTemplate.val("onepager/onepage.php");
} else {
$pageTemplate.val("onepage.php");
}
$pageTemplate.trigger('change');
$publish.click();
}
// ...
function isOnepageTemplate(template) {
//if template is null return false
return template && ("onepage.php" === template || template.indexOf("onepager-") === 0 || template.indexOf("onepager/") === 0);
}
// ...
Hi,
When I click Enable OnePager on the Page editor, the page saves/publishes itself but other than that nothing happens. Am I doing something wrong?
I'm using WP 4.4.2 on WAMP at the moment.
Thanks, Paolo.