Announcement

Collapse
No announcement yet.

Need some coding assistance in Ready Theme

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need some coding assistance in Ready Theme

    New question. I've been trying to get this to work for hours now. Here is some of the Content code I've altered on the SFNT page.

    <!-- Promo box starts -->
    <div class="promo">
    <div class="container">
    <div class="row">
    <div class="col-md-6 col-sm-6">
    <div class="pbox image">
    <div>
    <mvt:item name="readytheme" param="image( 'promo_1' )" />
    </div>
    <div class="clearfix"></div>
    </div>
    </div>
    <div class="col-md-6 col-sm-6">
    <div class="pbox image">
    <div>
    <mvt:item name="readytheme" param="image( 'promo_2' )" />
    </div>
    <div class="clearfix"></div>
    </div>
    </div>
    </div>
    <div class="row">

    It works great but I want to add the category names across each image like what is displayed on the Category page of the Storyteller theme. I was on the W3 CSS website tutorial page showing how to do this, but I'm not sure where the code I want to use goes in each of the <div class="pbox image"> sections.

    The text I want to use over image with 'promo_1' is Handcrafted Albums which I want to center vertically & horizontally.

    I don't know which CSS file from the Ready Theme I am supposed to use to do this. I can see what they used below (bolded & enlarged) but not sure where to stick it or name it within my Content section for each promo image.

    The CSS code C3 uses to do this is:

    <!DOCTYPE html>
    <html>
    <title>W3.CSS</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/lib/w3.css">
    <body>

    <div class="w3-container">
    <h2>Image Text</h2>
    <p>Position content inside an image with the w3-display-<em>classes</em> - Note that we have added the w3-container class to get more padding:</p>

    <div class="w3-display-container w3-text-white">
    <img src="img_lights.jpg" alt="Lights" style="width:100%">
    <div class="w3-display-topleft w3-container"><p>Top Left</p></div>
    <div class="w3-display-topright w3-container"><p>Top Right</p></div>
    <div class="w3-display-bottomleft w3-container"><p>Bottom Left</p></div>
    <div class="w3-display-bottomright w3-container"><p>Bottom Right</p></div>
    <div class="w3-display-left w3-container"><p>Left</p></div>
    <div class="w3-display-right w3-container"><p>Right</p></div>
    <div class="w3-display-middle w3-large">Middle</div>
    <div class="w3-display-topmiddle w3-container"><p>Top Middle</p></div>
    <div class="w3-display-bottommiddle w3-container"><p>Bottom Middle</p></div>
    </div>

    </div>

    </body>
    </html>








    Kathleen Steimle-Hermes
    , owner
    Miss Kate's Creations
    [email protected]
    www.misskatescreations.com


    Handcrafted fabric covered photo albums, frames, brag books and MORE



    #2
    Hi Kathleen,

    This code should accomplish what you are looking for. Add the CSS to your style.css file.

    HTML Code:
    <!-- Promo box starts -->
    <div class="promo">
        <div class="container">
            <div class="row">
                <div class="col-md-6 col-sm-6">
                    <div class="pbox image">
                        <div class="pbox-title">PROMO TITLE 1</div>
                        <div>
                            <mvt:item name="readytheme" param="image( 'promo_1' )"/>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="col-md-6 col-sm-6">
                    <div class="pbox image">
                        <div class="pbox-title">PROMO TITLE 2</div>
                        <div>
                            <mvt:item name="readytheme" param="image( 'promo_2' )"/>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Promo box ends -->
    Code:
    .promo .pbox {
        position: relative;
    }
    
        .promo .pbox-title {
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 5;
        }
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Matt, thank you so much! This was exactly the kind of help I needed.



      Kathleen Steimle-Hermes
      , owner
      Miss Kate's Creations
      [email protected]
      www.misskatescreations.com


      Handcrafted fabric covered photo albums, frames, brag books and MORE


      Comment

      Working...
      X