-
AuthorPosts
-
January 22, 2021 at 12:27 pm #1274664
Hello,
we have a display problem with the sidebars on a clients’ site.
After we installed updates (PHP, WordPress, Enfold, Plugins) the sidebars are displayed different as before, but only on special pages we created a custom post type (“Sektionen”) for. The sidebar is pushed under the actuall content.
This might have to do with some CSS problems, because the sidebar border is displayed in the full width section and the content in there is pushed to the right. The headline is capitalised as well.This is quite strange, because on other “normal” pages the sidebars don’t have this problem. You can find links in the private content.
I hope you can help. Thank you.
SeanJanuary 23, 2021 at 5:45 am #1274896Hi Sean,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardJanuary 23, 2021 at 12:24 pm #1274940Hi Rikard,
Please find the login credentials below.
Best regards,
SeanJanuary 27, 2021 at 6:30 pm #1275846Hello Rikard,
could you please give me an update on this problem?
Best regards,
SeanJanuary 27, 2021 at 6:50 pm #1275849Hello Sean and Rikard sorry if i write here but i didn’t understand why i can’t ask support i can’t find the please where i can write , from a several months i have problem with mine enfold theme in the option theme i can’t modify nothing , on the left side i can’t chose layout colors and more i can’t modify , i have already ask to Aruba to change the server with more space, already change and nothing is fix . Please somebody can help me ?
Thank you so much
GretaJanuary 30, 2021 at 10:33 pm #1276546Hi,
@Lars sorry for the very late reply and thanks for the login, I found that your custom post type structure is missing the “main” ID#main
thus the css for the sidebar was not working:#top #main .sidebar { border-left-style: solid; border-left-width: 1px; margin-left: 0; float: none; width: auto; overflow: hidden; display: block; clear: none; }
I added this css to your Quick CSS field to correct the sidebar for your custom post types:
#top #after_section_1 .sidebar { border-left-style: solid; border-left-width: 1px; margin-left: 0; float: none; width: auto; overflow: hidden; display: block; clear: none; }
This seems to sort the page out, please clear your browser cache and check.
@gretatessa, welcome to the forum, I see that you have not yet created a support thread for your issue, please click here to create a new thread so we can assist. This will make helping you more personalized. *I will point out that you are using Enfold v4.1.2 with WP v5.5.3, you will need to update Enfold to the latest version, please do this first.Best regards,
MikeFebruary 1, 2021 at 1:10 pm #1276799Hi Mike,
thank you for your answer, but it’s not quite as before yet. There are still some CSS issues and I don’t know where they’re coming from.
A sidebar border is displayed in the full width section and the content in there is pushed to the right. Furthermore the headlines (“Sektion Versorgungsforschung” in the full width section and “Kontakt” in the sidebar) are capitalised and the font-sizes aren’t correct.
It seems that some CSS rules from enfold_child.css aren’t shown/used.
Please check the links below again.Thank you and best regards,
SeanFebruary 1, 2021 at 2:03 pm #1276816Hi,
I believe this is because your custom post type (CPT) sektion-template-default has an incorrect structure which will not allow the css to work correctly.
For example, your page structure should be #top > #wrap_all > #main > [rest of content], but your custom template has the content outside of the #main, that is the #main is empty, so all of the css that has the #main or #wrap_all in it will not work as intended.
Please use your browser dev tools to compare the page structure of the two.
I see that you are using Toolset, and I assume this is how you are creating your CPT and your custom template, so you will need to recreate your template structure so it is valid.Best regards,
MikeFebruary 1, 2021 at 4:10 pm #1276865Hi Mike,
I checked that and you are right that the content is not in #wrap_all > #main, but only in #top.
I don’t know why that is like that, because I use the (Avia) Layout Architect to create the content and no custom template. The CPT “Sektionen” was only created to have a new seperate section like the Enfold “Portfolio Items” CPT. Additionally the “Sektionen” pages worked just fine before the last updates.
What do I have to change with the structure so that the content is in #main (again)?Best regards,
SeanFebruary 2, 2021 at 1:40 pm #1277146Hi,
I see that you are using a custom single.php and a custom includes/loop-types.php for your CPT, I believe it is these files you will need to correct. When I copy your custom page to a plain page the structure is correct, the same is true when I copy your custom page to a plain post. Please see the links in the Private Content area.
I imagine that you are using these custom files with your CPT because you are using Toolset, unfortunately, I don’t use Toolset so perhaps I’m using the wrong term, but it seems like between Toolset and your CPT the page structure is not correct, using the default page or post with the same content displays the correct structure.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.