WordPress.org

Support

Support » Plugins and Hacks » EZ Staff List different cell widths.

EZ Staff List different cell widths.

  • cjc1867

    @cjc1867

    Hi Luke
    Why does the widths of the table cells differ? I have set it to 2 columns and they are noticeably different.

    In my stylesheet I have added a class staff_list td and set the width to 295px and that seems to work.

    Checking the HTML code, the structure is not correct.

    <td colspan="1">
    <div class="staff_data">
    <div class="staff_name">Colin Crawford – </div>
    <p><img src="/wp-content/uploads/2012/11/colin-crawford.jpg" /></p>
    <div class="staff_about">Web Designer</p>
    <p>Email:<br />
    <a href="mailto:info@greenleaf-net-solutions.com">info@greenleaf-net-solutions.com</a></div>
    <div style="clear: both;">&nbsp;</div>
    </div>
    </td>

    Can you fix it or where is this generated from and I’ll have a look myself but I can’t find the right file.

    Colin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Luke

    @codifyllc

    Hello Colin,

    I did not want to set a forced width because the site layout is unknown for my plugin. The plugin does not know if it’ll be in a 1, 2 or 3 column layout, etc. I might put the option for setting a width in there for a near future release to accommodate for that.

    I do see what you are saying about the HTML markup, it appears to be an issue with the <p> element.

    After looking into the code, I’m not generating a <p> element at all. I believe this has to do with the wordpress auto generated <p> for the posts. I’ve tried to use:

    remove_filter('the_content','wpautop');

    But that did not work on my local copy. I’ll continue to see if I can figure out a way around it.

    Luke

    cjc1867

    @cjc1867

    Hi Luke thanks for taking the time to having a look at my problems.

    How can we get rid of the hypen after the staff name?

    I’ve got an awkward customer and is finding fault with anything she finds.

    Colin

    Luke

    @codifyllc

    take a look at the file in the plugins directory. in there youll find a function called staff_list()

    if u need more help let me know and I can provide more detail when by my computer

    Luke
    [ Signature moderated. ]

    cjc1867

    @cjc1867

    Thanks Luke I found the line and removed the hyphen part.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘EZ Staff List different cell widths.’ is closed to new replies.
Skip to toolbar