• Hello All!

    I just want to share this, I have been working on a WordPress Theme Framework and I know my stuffs like specially the PHP.

    I just can’t figure out how to add a “disable/readonly” on an input field if say you disabled a certain option.

    I have these two options:

    1. Featured Article
    2. Featured Article Category Name

    Now, if say you disabled the Featured Article, what I want to achieve is to make the Featured Article Category Name disabled.

Viewing 1 replies (of 1 total)
  • Thread Starter Stay Frosty

    (@stay-frosty)

    I fixed it,

    <?php if ( get_settings( $panadolPressValues['disable_parent'] ) ){} else if ( $panadolPressValues['disable'] == true ) { echo ' disabled'; } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘WP Theme Options – Disable/Readonly option if you disabled certain option’ is closed to new replies.