Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: Change dropdown width

    No Problem 🙂

    The form fields from contact form 7 work the same way. you can give them classes like you want. For Example: [select choosesome class:my-class]

    Then you can define the width via CSS in your themes style.css file.

    Here is a nice graphic displaying what i said about the themes templates: http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

    Forum: Plugins
    In reply to: Change dropdown width

    Ah, i understand. you are doing a backend interface for your plugin?

    http://wpengineer.com/wp-content/uploads/screenshot-2.png
    Here you find a list of all needed elemets including their style classes. For your exact question: You can give your select your own class and define the width by CSS.

    For Example: <select class="my-select-class">

    Then you have to define your own stylesheet CSS file for this.
    Here is the way you can attach the stylesheet to the admin area:

    function admin_register_my_styles() {
        $siteurl = get_option('siteurl');
        $url = $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/yourstyle.css';
        wp_register_style( 'your-plugin-slug', $url );
        wp_enqueue_style( 'your plugin-slug' );
    }
    add_action('admin_print_styles-[YOUR OPTIONS PAGE SLUG]', 'admin_register_my_styles');

    I hope that helped?

    Forum: Plugins
    In reply to: Change dropdown width

    Which dropdown do you mean?

    No Problem! I work that way all day and for me it is the best way with dreamweaver.

    I hope you get the comfort you are looking for.

    Best regards.

    Hello tesse_k,

    the solution is quite simple. You must setup a dreamweaver site. And in this dreamweaver site you have to define a testing server in a special way: At frist you set up the basic server as a local server:

    Server Name: Local Testingserver
    Connect using: Local/Network
    Server Folder: [The path to your wordpress directory]
    Web URL: [Will usually be automatically set. Otherwise it is something like “http://localhost/wordpress/”%5D

    Then switch to the “Advanced” section. There you have to choose a Testing server at the very bottom. Select “PHP MySQL”. You can leave all other points as they are.

    Allright sparky. So far, so good. Save the settings and turn back to your coding editor. There you choose the Menu “Site”. From there you go to the option “Site specific code-hints”. There yu choose the structure “WordPress”. Leave everything as it is.

    Thats it. So now you get every code hint you want. Although the relationship between the files and the source file a function or class is coming from.

    I hope that helps?

    By the way: a direct view of all related files of the index.php from your themes is not posible, because the build structure starts from the very first index.php in your wordpress folder. from there on your theme will be called. The Themes index.php does not act like the wordpress index.php.

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