Post additional params - change selector

January 2012 WordPress Theme
GK User
Mon Feb 09, 2015 10:34 pm
Hey!

I'd like to change the standard-selection of the post additional params. I found this in the code:

Code: Select all
<p>
  <label for="gavern-post-params-title-value">Show title:</label>
    <select name="gavern-post-params-title-value" id="gavern-post-params-title-value">
     <option value="Y" selected="selected">Enabled</option>
     <option value="N">Disabled</option>
</select>
</p>


and want to change some of these selectors to

Code: Select all
<p>
  <label for="gavern-post-params-title-value">Show title:</label>
    <select name="gavern-post-params-title-value" id="gavern-post-params-title-value">
     <option value="Y">Enabled</option>
     <option value="N" selected="selected">Disabled</option>
</select>
</p>


In which file can I find these settings?

Thanks for your help!

Jan
User avatar
Fresh Boarder

GK User
Tue Feb 10, 2015 9:06 am
Hi,

I'm not sure if you'll be able to change it without more modifications, but please check "gavern_post_params_callback" function from Game/gavern/helpers/helpers.features.php file.
User avatar
Moderator

GK User
Thu Feb 12, 2015 1:23 am
Mmh, you were right.
It's not a professional solution but now I used "display:none" in the override.css to hide contens I normally had to disable via post additional params. I also deleted corresponding selectors from "gavern_post_params_callback" function so they're no longer in the backend.

It works for me, I never enabled some of these post additional params so I "deleted" them.

Thanks for your help, Piotr!
User avatar
Fresh Boarder


cron