• Resolved mandrill2000

    (@mandrill2000)


    Hi,

    I am a newbie at WordPress and need to make columns equal length. I am not sure what I need to add to the code to make this so.

    here is the snippet of code for the page I need to fix the issue. thanks for your help!

    [su_row][su_column size=”2/3″]<div style=”padding: 20px;”><h2>Get Back Into The Swing!</h2>

    <h4>West Coast Swing classes start September 11</h4>
    Want to look amazing while partner dancing to R. Kelly, Maroon 5 or old school R&B? Join us for 8 lessons of West Coast Swing with nationally accomplished instructors, Soleman Krebs and Angei Kostoff! Whether you are a newbie or veteran dancer, you will love this versatile dance – all levels of dancers are welcome.

    <img src=”https://www.crashdancers.net/wp-content/uploads/2015/08/soleman-angei.jpg&#8221; alt=”Soleman and Angei” width=”250″ height=”250″ class=”alignright size-full wp-image-395″ />West Coast Swing with Soleman and Angei
    Friday, September 11
    6:30 pm – 8:00 pm – Lesson
    8:00 pm – 9:00 pm – Practica
    NVC Hall, 1212 S King St, Seattle, WA

    $10 per person / $5 seniors 70+
    Cash only. Sorry, no checks or credit cards.
    </div>[/su_column]
    [su_column size=”1/3″]<div style=”padding: 20px; background-color: #FBDAFA; height: 100%;”><h4>West Coast Swing Class Schedule</h4>
    All times are 6:30pm to 8:00pm (lesson) 8:00pm to 9:30pm (practica)

    September 11
    September 18

    October 2
    October 9
    October 16
    October 23

    November 6
    November 13</div>[/su_column]
    [/su_row]

    https://www.ads-software.com/plugins/equal-height-columns/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Braad

    (@braad)

    Hello @mandrill2000

    All you need to do is enter the right selector on the settings page. The selector should match either an id or class attribute on the HTML elements that you want to equalize the heights of.

    In your example, the shortcodes [su_row] and [su_column] will expand into HTML elements on the front end of the site, and hopefully they have a unique class or id that you can use. You’ll want to check out the HTML on the front end of your site by either right clicking on the screen and selecting “Inspect Element” or “View Page Source” and then find the right HTML for the columns. It will likely look something like this:

    <div class="row-1">
        <div class="col-1 column">Column Content</div>
        <div class="col-2 column">Column Content</div>
        <div class="col-3 column">Column Content</div>
    </div>

    The selector you enter on the settings page should match the elements that you want to equalize the heights of, so for this HTML the selector would be “.row-1 .column”, which says “Find the element with the class ‘.row-1’, then look inside it and match child elements with the class ‘.column'”

    If you can share a direct link to the page on the front end of your site where you’re trying to get it working, or if you can share the HTML that your shortcodes turn into, I can recommend what specific selector you’ll want to use to get it working.

    I hope this information helps. Thanks for using Equal Height Columns!

    Thread Starter mandrill2000

    (@mandrill2000)

    thanks for your reply, I appreciate it!

    here is the link page I want to establish equal column widths to.

    https://www.crashdancers.net/index.php/crashdance-fridays/

    thanks in advance for you help!

    Jay

    Plugin Author Braad

    (@braad)

    Thanks for sharing the URL. I can see that the plugin is working and the selectors that you are using are very close to correct. Right now your selectors are:

    .su-row .su-column-size-2-3
    .su-row .su-column-size-1-3

    But you actually want to use:

    .su-row .su-column

    The idea is that a single selector should match multiple elements and then equalize the heights of all the matching elements. With your selectors you were only matching one element with each selector, so the plugin didn’t have a second element to compare it to.

    There are, however, some other issues on your page that you’ll need to fix before you get the result that I think you want. Using the selector I mentioned above will equalize the height of the columns, but in your case your div that has the background color is not the column div, it’s one of the child divs. You could do height: 100%; on .su-column-inner and then add box-sizing: border-box; to your div with the background color. That gets you most of the way there. There is also a JavaScript error showing in the console Uncaught ReferenceError: ajaxurl is not defined that may prevent the JavaScript that Equal Height Columns needs from running. It looks like that is coming from a plugin called WP RSS Aggregator.

    Best of luck.

    -Braad

    Plugin Author Braad

    (@braad)

    Hello @mandrill2000,

    We haven’t heard from you for a while, so I’m going to mark this issue as resolved, but feel free to reopen if there is anything more we can help you with. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘installed plugin, now how to use it?’ is closed to new replies.