[Support request] I would need help with customizing a table

Home Forums Support [Support request] I would need help with customizing a table

Home Forums Support I would need help with customizing a table

Viewing 15 posts - 16 through 30 (of 41 total)
  • Author
    Posts
  • #756079
    Patrik

    Strange – Now i see </p> in Google Chrome > show source. But not in the post.. How can it get there automatically in the posts? πŸ™‚

    No, I do not have a child theme but I have done a list of things I have to paste in after updating. πŸ™‚

    Okay, set it at 600 now. Thanks. πŸ™‚

    #756415
    David
    Staff
    Customer Support

    It looks like you got it working. Let me know

    #756467
    Patrik

    It is the one contained in content-page.php and content-singel.php that works. It is in the post / page that does not work.

    #756478
    David
    Staff
    Customer Support

    In that case put your image inside a div e.g <div><img tag in here></div> that should stop the autop problem.

    #756640
    Patrik

    Thanks for the help! πŸ™‚

    Now the text jumped up but the button does not get the same shape as the one that works.

    It looks like it gets the same shape as the comment button? πŸ™‚

    Has posted it on the homepage now.

    #756648
    David
    Staff
    Customer Support

    Can you check your HTML in the Text Editor – the a tag is now wrapped in a paragraph tag which is causing the issue.

    #756709
    Patrik

    It does not appear in Text Editor only in Google Chrome > show source.

    What is it that makes <p> come up automatically all the time? πŸ™‚

    #756733
    David
    Staff
    Customer Support

    Ok so wrap the a tag in a <span></span> tag and add this CSS:

    .teaser-block span a {
        width: 100%;
        box-sizing: border-box;
    }
    #756794
    Patrik

    Now the button became the same size but not centered in the same way. πŸ™‚

    EDIT:
    Look at the comment button at the bottom. It is the same as it + has the same color? πŸ™‚

    #756819
    David
    Staff
    Customer Support

    May i suggest if you are still using the classic editor to add this plugin:

    https://wordpress.org/plugins/tinymce-advanced/

    It will display the P tags are getting added, probably due to line breaks in your markup.

    #757106
    Patrik

    Have tested it tonight but it still does not work.. I have never experienced this problem before. Is it Gutenberg that is the problem? Can not understand what automatically adds code to text editor (i use html-version) but not outside posts? πŸ™‚ Frustrating. πŸ™‚ In what position do you see <p> in tinymce-advanced? πŸ™‚

    #757603
    Tom
    Lead Developer
    Lead Developer

    You could try adding this CSS:

    .teaser-block p:empty {
        display: none;
    }

    Alternatively, I would suggest using the new editor in WordPress 5.0. It has an HTML block that won’t add additional markup <p></p> to your code.

    #757772
    Patrik

    Unfortunately the code did not work.. πŸ™‚

    Have tried it now and saved in html version in the new editor in WordPress 5.0 but it became <p> anyway. Where do you mean I can find HTML blocks? πŸ™‚

    #757870
    Tom
    Lead Developer
    Lead Developer

    Can you remind me of what it’s supposed to look like? David is away for the weekend.

    Here’s what I see: https://www.screencast.com/t/qrE2j734R

    Let me know πŸ™‚

    #757879
    Patrik

    I want the button inside posts and pages to look like buttons outside posts and pages.

    Like this: https://3.bp.blogspot.com/-uR9suACQNA4/XBW_vnTACAI/AAAAAAAABrU/Fn-9pLUuyNQ9SR5V1N4UcL8OhCsqUhuAgCLcBGAs/s1600/button.png

    It’s the size and position I’m looking for. You see two at the top of my homepage. Its in content-page.php.

    The problem seems to be that wordpress automatically adds <p>. I do not see it in text editor but when I look at the code through Google Chrome > show source, I see <p>.

    And I wish code that is liked by google. πŸ™‚

    I am very grateful for all the help. πŸ™‚ Love your theme and all things to do with it. Count me as a customer for a very very very long time. πŸ™‚

Viewing 15 posts - 16 through 30 (of 41 total)
  • You must be logged in to reply to this topic.