Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here is a much more complicated, but more stable solution. It won’t get wiped out whenever Shuttle gets updated.

    You need MySQL database access. In the table wp_options (or wp_SITEID_options if you’re on multisite) you’ll find a key called “shuttle_redux_variables”.

    The option_value will start something like a:33:{s:36:"shuttle_header_styleswitch"; ...

    Add one to that “a” number, so for our above example it’ll be 34.

    Then add this string right after the “{“:

    s:30:"shuttle_homepage_sectionswitch";i:1;

    So the beginning looks like:

    a:34:{s:30:"shuttle_homepage_sectionswitch";i:1;s:26:"shuttle_header_styleswitch"; ...

    Then you don’t need the theme hack, because the variable will be set correctly. There’s a bug in the customize interface that doesn’t allow you to change it at all, so you’ll have to do it this way until they get it fixed.

    Hey there!

    I had the same problem, and I have a hacky solution for you that worked for me.

    Edit the “Shuttle” theme, file “admin/main/options/02.homepage.php”.

    You’ll find a line like this in function “shuttle_input_homepagesection”:

    $shuttle_homepage_sectionswitch = shuttle_var ( 'shuttle_homepage_sectionswitch' );

    I commented it out, and hard-coded it like this:

    //$shuttle_homepage_sectionswitch  = shuttle_var ( 'shuttle_homepage_sectionswitch' );
    $shuttle_homepage_sectionswitch = true;
    

    It looks like, for whatever reason, this internal variable doesn’t get set as true. The logic that decides to display the features or not checks if the variable is set, or if you have edit rights. Hence why it works in preview.

    There’s certainly a better way to fix this, but this at least gets us pointed in the right direction.

    Thread Starter Matthew Scheffel

    (@mscheffel)

    Thank you for your prompt reply @dvankooten, that works. It’s not perfect, as it will always register an event regardless of the success of the subscription request, but it’ll do!

Viewing 3 replies - 1 through 3 (of 3 total)