Timeline for get_sidebar() will not work in footer.php
Current License: CC BY-SA 4.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 6, 2021 at 13:38 | vote | accept | posfan12 | ||
May 4, 2021 at 17:08 | vote | accept | posfan12 | ||
May 5, 2021 at 2:43 | |||||
May 2, 2021 at 12:32 | answer | added | Jacob Peattie | timeline score: 1 | |
May 1, 2021 at 20:53 | history | edited | posfan12 | CC BY-SA 4.0 |
added 10792 characters in body
|
May 1, 2021 at 20:51 | comment | added | posfan12 |
I tried get_sidebar('sidebar-1'); with no improvement.
|
|
May 1, 2021 at 20:49 | comment | added | posfan12 | Okay I updated the question with the full footer HTML. You can see that the sidebar is totally missing. | |
May 1, 2021 at 20:46 | history | edited | posfan12 | CC BY-SA 4.0 |
added 3 characters in body
|
May 1, 2021 at 20:21 | review | Close votes | |||
May 16, 2021 at 3:01 | |||||
May 1, 2021 at 19:58 | comment | added | Michael | what you posted as 'rendered html' is clearly not generated from what you posted as code in footer.php - the html tags and CSS does not match. what html code is rendered in the footer? | |
May 1, 2021 at 18:58 | answer | added | Pixelsmith | timeline score: 0 | |
May 1, 2021 at 15:13 | comment | added | anton |
If you put get_sidebar('sidebar-1'); in your footer, what result you will get?
|
|
May 1, 2021 at 14:47 | comment | added | posfan12 | How do I get the sidebar to not appear in the post area and in the footer instead? | |
May 1, 2021 at 14:41 | history | edited | posfan12 | CC BY-SA 4.0 |
added 731 characters in body
|
May 1, 2021 at 14:34 | comment | added | posfan12 |
I discovered the problem is its placement. The sidebar is not being placed in the footer, but is getting tacked on after the last post instead, before any of the footer code. I am using the Underscores theme by the way. The sidebar normally gets added in header.php .
|
|
May 1, 2021 at 14:33 | history | edited | posfan12 | CC BY-SA 4.0 |
added 209 characters in body
|
May 1, 2021 at 14:32 | comment | added | anton |
So where is a problem if you have an output, if you dont specify sidebar name for get_sidebar it will output default sidebar, which you pasted here)
|
|
May 1, 2021 at 14:29 | comment | added | Jacob Peattie | What is the second block of code? That looks correct? | |
May 1, 2021 at 14:07 | comment | added | posfan12 | It is being taken out of the context I specify and placed after the last post instead. | |
May 1, 2021 at 14:06 | history | undeleted | posfan12 | ||
May 1, 2021 at 13:54 | history | deleted | posfan12 | via Vote | |
May 1, 2021 at 13:49 | history | edited | posfan12 | CC BY-SA 4.0 |
added 420 characters in body
|
May 1, 2021 at 13:45 | comment | added | anton | Share you code please | |
May 1, 2021 at 13:38 | history | asked | posfan12 | CC BY-SA 4.0 |