Support » Plugin: Child Pages Shortcode » Top row not aligning properly

  • Resolved zydesigns

    (@zydesigns)


    Hello, after installing the plug-in and shortcode ona page the top row is aligning strangely. The theme is a default one but the top row is staggered, looking like steps descending (all browsers) to the right and using Chrome I can’t find anything affecting it in the CSS.

    Has anyone else come across this?

    https://wordpress.org/plugins/child-pages-shortcode/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I came across the same problem today and was beginning to tear my hair out. I found the issue was that the code was injecting a new line before and after each child post div in the loop.

    To fix simply remove the two lines of:

    $html .= "\n";

    In the get_template function (line 145 in child-pages-shortcode.php)

    Thread Starter zydesigns

    (@zydesigns)

    Hello Daniel,

    Thanks for the response, unfortunately I tried doing that but to no effect. Would you have any other thoughts?

    Hi,

    I found a solution by removing in file child-pages-shortcode.php

    line 147: $html = “\n”;
    and
    line 157: $html .= “\n”;

    I hope this helps.

    Thread Starter zydesigns

    (@zydesigns)

    Thanks Catalin but I’ve since gone in a different direction with that project. Appreciate the thought though!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Top row not aligning properly’ is closed to new replies.