WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Terms and conditions page have strange characters in Divi web
Tagged: divi
- This topic has 6 replies, 3 voices, and was last updated 2 years, 11 months ago by
chsweb.
-
AuthorPosts
-
January 25, 2023 at 6:04 pm #8024
rafamoreno1960
ParticipantHi. This page have these characters before the text: [et_pb_section fb_built=”1″ admin_label=”section” _builder_version=”4.16″ da_disable_devices=”off|off|off” global_colors_info=”{}” da_is_popup=”off” da_exit_intent=”off” da_has_close=”on” da_alt_close=”off” da_dark_close=”off” da_not_modal=”on” da_is_singular=”off” da_with_loader=”off” da_has_shadow=”on”][et_pb_row admin_label=”row” _builder_version=”4.16″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” global_colors_info=”{}”][et_pb_column type=”4_4″ _builder_version=”4.16″ custom_padding=”|||” global_colors_info=”{}” custom_padding__hover=”|||”][et_pb_text admin_label=”Text” _builder_version=”4.19.1″ background_size=”initial” background_position=”top_left” background_repeat=”repeat” global_colors_info=”{}”]
and these characters after the text: [/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]
what should i do to remove them?
My web have the Divi pagebuilder
January 26, 2023 at 12:47 pm #8026Shadow Labs
Keymaster@rafamoreno1960, These are not added by our plugin.
May 4, 2023 at 12:41 pm #8131chsweb
ParticipantHow did you resolve this? I have the same issue.
May 4, 2023 at 1:04 pm #8134rafamoreno1960
ParticipantMy solution is with CSS:
/* ajustes afiliados */
#termsBox {
color: white !important;
}
#termsBox > p {
color: black !important;
}
#termsBox > h1:nth-child(1) {
margin-top: -100px !important;
}This work for me.
May 4, 2023 at 5:33 pm #8137chsweb
ParticipantThank you @rafamoreno1960 – I am also using Divi. I tried something similar, but applied display:none; to everything, and then display:block to the headings and paragraph text, but that did not work because the paragraph tags are removed in the term box for some reason on save.
This is what I tried:
/* hide everything, then show just what is needed */
div#termsBox * { display: none;}
div#termsBox h2, div#termsBox p { display: block;}My working solution was to revert the page back from Divi’s editor to the default WordPress editor and then edited the Terms content as follows:
I edited in HTML view and added some inline CSS to get the headings and body text to render better, since the WordPress editor was removing the paragraph tags on save:
<div style=”white-space:normal;”>
<h2 style=”margin-top:24px; font-size:24px;”>Section Title Here</h2>
<p>The quick brown fox jumps over the lazy dog. If the dog is lazy the fox is safe.</p>
<h4 style=”margin-top:24px; font-size:20px;”>Sub Title Here</h4>
<p>The quick brown fox jumps over the lazy dog. If the dog is lazy the fox is safe.</p>
</div>May 5, 2023 at 2:21 pm #8139rafamoreno1960
ParticipantMy solution is a little less elegant: put text and background in white color and then put the paragraphs in black, since these are identified in the html. It is not the most correct but it works for me. When the page was created through a shortcode I did not see the way to directly edit the html.
May 5, 2023 at 4:19 pm #8140chsweb
Participant“text and background in white color and then put the paragraphs in black, since these are identified in the html”
For me, the paragraphs are not wrapped in <p> tags, so I cannot target them. When I edit to add <p>Text</p>, the <p> gets removed.
…I think the tag removal is a DIVI problem, as I see it happen from time to time when editing HTML in the DIVI content modules.
-
AuthorPosts
- You must be logged in to reply to this topic.