Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter LearningDesigner

    (@learningdesigner)

    I used a blanco HTML-based theme and I added my own stuff to it.

    Thread Starter LearningDesigner

    (@learningdesigner)

    bump

    If you know any CSS, you can look up what the image tag is called and give it a max-width.

    Hope that helps ??

    Thread Starter LearningDesigner

    (@learningdesigner)

    Just to make it more specific:

    I have, regarding the register_post_type, this in my function.php

    // register custom post type 'my_custom_post_type'
    add_action( 'init', 'create_my_post_type' );
    function create_my_post_type() {
        register_post_type( 'my_custom_post_type',
          array(
            'labels' => array( 'name' => __( 'Products' ) ),
            'public' => true
        )
      );
    }

    and

    // Create 1 Custom Post type for a Demo, called HTML5-Blank
    function create_post_type_html5()
    {
        register_taxonomy_for_object_type('category', 'html5-blank'); // Register Taxonomies for Category
        register_taxonomy_for_object_type('post_tag', 'html5-blank');
        register_post_type('html5-blank', // Register Custom Post Type
            array(
            'labels' => array(
                'name' => __('HTML5 Blank Custom Post', 'html5blank'), // Rename these to suit
                'singular_name' => __('HTML5 Blank Custom Post', 'html5blank'),
                'add_new' => __('Add New', 'html5blank'),
                'add_new_item' => __('Add New HTML5 Blank Custom Post', 'html5blank'),
                'edit' => __('Edit', 'html5blank'),
                'edit_item' => __('Edit HTML5 Blank Custom Post', 'html5blank'),
                'new_item' => __('New HTML5 Blank Custom Post', 'html5blank'),
                'view' => __('View HTML5 Blank Custom Post', 'html5blank'),
                'view_item' => __('View HTML5 Blank Custom Post', 'html5blank'),
                'search_items' => __('Search HTML5 Blank Custom Post', 'html5blank'),
                'not_found' => __('No HTML5 Blank Custom Posts found', 'html5blank'),
                'not_found_in_trash' => __('No HTML5 Blank Custom Posts found in Trash', 'html5blank')
            ),
            'public' => true,
            'hierarchical' => true, // Allows your posts to behave like Hierarchy Pages
            'has_archive' => true,
            'supports' => array(
                'title',
                'editor',
                'excerpt',
                'thumbnail'
            ), // Go to Dashboard Custom HTML5 Blank post for supports
            'can_export' => true, // Allows export in Tools > Export
            'taxonomies' => array(
                'post_tag',
                'category'
            ) // Add Category and Post Tags support
        ));
    }

    ____

    Please, I really need help on this one.

    Thread Starter LearningDesigner

    (@learningdesigner)

    Thank you so much, I got them both working! ??

    Thread Starter LearningDesigner

    (@learningdesigner)

    Sure.

    This is what I have now:

    Header.php
    <!– header –>
    <header>
    <div id=”custom-image”>
    <div id=”main-name”>Sunrise Music Shop</div>
    </div>
    </header>
    <!– /header –>

    Style.css
    header, #custom-image{
    width:100%;
    height:400px;
    }
    header{
    z-index:1;
    }
    #custom-image{
    background-color:#667;
    background-size:100% auto;
    background-position:center;
    background-repeat:no-repeat;
    z-index:2;
    }

    (the image must be in responsive design.

Viewing 6 replies - 16 through 21 (of 21 total)