themexpert / onepager

Onepage Theme/Website Builder for WordPress
https://themesgrove.com/wp-onepager/
Other
304 stars 101 forks source link

Enable OnePager Not Working #116

Closed paoloramos closed 5 years ago

paoloramos commented 8 years ago

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.

anakinjay commented 8 years ago

Same issue for me on 4.4.2 using php's built in webserver.

anakinjay commented 8 years ago

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.

christianfroehlichconsulting commented 8 years ago

Did you use? npm install bower install composer install gulp

codexpert commented 8 years ago

npm install ~ gulp not necessary if you are installing the plugin from WP admin.

codexpert commented 8 years ago

@anakinjay Can you PM your site details on our Gitter chat ?

kimico commented 7 years ago

Same issue, v: 1.2.5 wp: 4.7.3–pt_PT

felipedeboni commented 6 years ago

@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);
}

// ...