• Resolved vinno

    (@vinno)


    Hi there, we got the problem from the GeoDirectory plugin that produces unnecessary <p> elements on the listing archive. We are using the Divi theme. This p element made a space and started to break the layout. Here is the shortcode that I’m using:

    [gd_listings post_type=”gd_place” post_limit=”10″ add_location_filter=”1″ sort_by=”az” title_tag=”h3″ layout=”2″ with_pagination=”1″ bottom_pagination=”1″ pagination_info=”after” border=”0″ rounded=”rounded-0″ with_carrousel=”1″ slide_interval=”5″ category=”1″]

    then the result is attached below.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alexrollin

    (@alexrollin)

    Hello,

    yes, Divi can add markup when Text modules are used in the GD templates. Also if short codes are inserted into the page Description ‘post_content’.

    What you can do to avoid that is use a ‘code’ module instead of a text module inside the GD templates on for your site.

    Also be sure to use the Divi backend editor to edit all the GD templates.

    Use short codes in the code module should also show the GD short code builder button.

    Sometimes a theme will still add markup for items in code modules, so, another thing you can do is remove extra line breaks – basically put all the instructions on one line.

    https://docs.wpgeodirectory.com/article/95-shortcode-builder

    If you need further help please open a support ticket here:?https://wpgeodirectory.com/support/

    Thread Starter vinno

    (@vinno)

    Hi Alex,

    I have replaced the text with the code module but the unnecessary <p> elements are still there. So I decided to use custom CSS to remove all of those <p>

    .et_pb_code_inner p { display: none;}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin output unnecessary element on Listing Archive’ is closed to new replies.