Problems in: Advanced – Edit custom wrapper code
-
Hi
i have ticked : Advanced – Edit custom wrapper code
i have inserted some texts into: “Before Widget” (widget on home page)
than, all contents under the widget stretched therefore the home page become horrible.
however, placing some text in “After Widget” it doesn’t show on front end.
thanks
-
This topic was modified 6 years, 8 months ago by
nd62.
-
This topic was modified 6 years, 8 months ago by
nd62.
The page I need help with: [log in to see the link]
-
This topic was modified 6 years, 8 months ago by
-
Hello @nd62,
Hope you’re doing well!
I’ve tested the Before and After Widget on my end and could not replicate similar issues. No view was broken and the After Widget is showing as well.
i have inserted some texts into: “Before Widget” (widget on home page)
than, all contents under the widget stretched therefore the home page become horrible.
Please make sure the HTML code you’re adding has all closing tabs. If there is a missing closing tab, it is possible to break the page appearance.
If the issue is persisting, please past here the HTML code added on your end.
Please advise,
Kind regards,
NastiaHi
please take a look:
before adding text to before widget:
http://www.alankabout.com/before.JPG
after adding text to before widget:
http://www.alankabout.com/after.JPGthanks
Hello @nd62
Can you please share the code you’re using to review it?
You can use a service like Pastebin or Gist for that.
Thank you,
DimitrisHi
sorry, i have no idea how to use them tools.
the site is on coming soon.
would u like to log in to the site so u can view the problem?
thanks
Hello @nd62,
Hope you’re doing well!
The HTML coding the one that added in the Before and After Widget section is bearing the site’s appearance. We will need to have a closer look at the added code to check what is causing this issue.
Please share the code with us. To do so, please visit this Patebin page:
https://pastebin.com/Oaste the HTML code you’re adding in a New Paste section and click on Create New Paste page. Please see the screenshot:
https://take.ms/LkUF5Copy the URL and share it with us in here
Optinaly you may log in.
Have a good day!
Cheers,
NastiaHi
as i explained before, i do not know how to use that code thing and also i do not know what code you referring to.
all i did i have insert this text into advanced/before widget:
“test before widget”i have shared the home page [ redundant link removed ] where the problem are.
thanks
-
This reply was modified 6 years, 8 months ago by
nd62.
-
This reply was modified 6 years, 8 months ago by
nd62.
-
This reply was modified 6 years, 8 months ago by
Jan Dembowski.
Hello @nd62,
Hope you’re doing well!
I’m afraid without having a closer look at the HTML code is not possible to continue troubleshooting this issue. Using the Pastebin is quite simple and the directions for this tool was shared above.
If you’re not comfortable with the Pasbeen, please add the HTML code onto a txt file, upload it to GoogleDrive or Dropbox and share a download link with us.
Have a good day and take care!
Kind regards,
NastiaHi
when you say “HTML code” did you mean copy the home page “page source” where is the problem?
if not, what HTML than you referring to?
thanks
-
This reply was modified 6 years, 8 months ago by
nd62.
Hello @nd62
I hope you’re well today!
I think the issue here is that you have added a text into a place where HTML is expected. HTML is a set of markup tags used for defining how the text looks like and behaves (e.g. defining colors, marking “blocks” of content etc).
The “Before Title”, “After title”, “Before Widget” and “After widget” fields are there for you to add additional HTML that will “change” default look/behavior of widgets in sidebars that are defined by your theme.
You can add the text there, of course, but the outcome depends also on the theme. For example:
adding clear text in “Before Widget” field and “After Widget” fields may (and usually will) make the widget take more space – usually it will make it wider; whether you will see these text would also depend on the theme itself because colors of text might be the same as background colors or CSS may be causing that text (which goes too far to the sides) to get “cut off”; also, depending on the theme, such plain text added there may actually be breaking theme’s HTML markup.
That’s why it’s important for us to know exactly about the HTML used there.
That said, let’s please try something else:
1) please take a screenshot of your “Before widget” and “After widget” fields in sidebar settings, containing everything you added there, as you see it in sidebar settings
2) if you cannot take off the “coming soon” mode so we could actually see that part of the site, please instead do view the “page source” of the page affected, copy entire code from it and share it with us through pastebin.com service or as a text file as explained previously by my colleagues.
Best regards,
AdamHi
thanks for the reply
“coming soon” is off
http://www.alankabout.com/1.JPG
http://www.alankabout.com/2.JPG
http://www.alankabout.com/3.JPG
http://www.alankabout.com/4.JPG
however, i have made a test for “after widget”
i placed the same text than back to home page.home page back to normal but i could not see the text after widget.
however, if you need to login to the site pls send me an email so i will share with you login details.
thanks
Could you please send me an email to contact@wpmudev.org using this template:
Subject: “Attn: Dimitris”
Message: link back to this thread for reference
Keep in mind the subject line as ensures that it gets assigned to me.
Thank you,
DimitrisHi Dimitris
i have send you an email few days ago still not heard from you.
thanks
Hello @nd62
I’m sorry for the delay here, I got your email and investigating this now. Will keep you posted about my findings as soon as possible.
Thank you,
DimitrisAs mentioned in here
http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpressThe before_widget argument is a wrapper element for widgets assigned to the sidebar. It should also be a block-level HTML element. This argument has a couple of things that you should always set with specific code so that plugins can properly use them, which is the id (%1$s) and class (%2$s) attributes.
So I just replaced
test before widget
with
test before widget<div id="%1$s" class="widget %2$s">
and the content width is good again in the rows that follows.screenshot: https://monosnap.com/file/v2b4ijtlccfFoNjiO73YRkSeGaU3Up
Warm regards,
Dimitris -
This reply was modified 6 years, 8 months ago by
The topic ‘Problems in: Advanced – Edit custom wrapper code’ is closed to new replies.