WordPress.org

Ready to get started?Download WordPress

Forums

EZ Staff List different cell widths. (5 posts)

  1. cjc1867
    Member
    Posted 1 year ago #

    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

  2. Luke
    Member
    Posted 1 year ago #

    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

  3. cjc1867
    Member
    Posted 1 year ago #

    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

  4. Luke
    Member
    Posted 1 year ago #

    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. ]

  5. cjc1867
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic