If i have a page that is a “category view”, for example if I set my hompage to be my latest posts, the browser window loads index.php (according to devtools).
If I load a “page”, that is set to the default template, it loads page.php.
However, if I set a page to a template other than default, the browser doesn’t load the template.php as I might have expected, it actually loads header.php – at least that’s what shows in the html in devtools, even though the template content does show in the browser below the header.
Normally, I wouldn’t worry about this as everything “looks” ok. However, I have custom js script which is in my header.php, but is addressing a css class in the content below the header, whether it is page.php, index.php or anything else – and it doesn’t work on template pages other than the default template.
Is this sort of thing “normal” for WP, or is it a specific issue with my theme i wonder?
]]>I submitted it as a bug, which I really think it is and was probed whether I used a template. I then tried a new, clean page. The hierarchy should have been clear and I would have figure it out.
Posting here in case anyone has the issue. I did not find it after searching everywhere I could think of.
]]>Can ya point me in the right direction?
]]>Thoughts?
]]>I want to know if it’s possible to just use this plugin’s columns shortcodes within one of the divs of a theme page template.
For example, if I am using the template page content-sidebar, can I insert a row in the content div, divided into 2/3 and 1/3 columns? And then use the clearing div before another 2/3-1/3 row?
https://www.ads-software.com/plugins/genesis-columns-advanced/
]]>I am an aspiring web developer and I’m working on a site in local host preparing to launch it. My goal is to be able to create wordpress themes for my self and others that are easily maintainable using the wordpress system.
I have a pretty good grasp of html and css, and while I may not know all the attributes and all the tricks, I feel like I understand the syntax and everything enough.
Where I am seriously seriously lacking is in JS and PHP, which I know I should be strong in to develop for wordpress.
So far I’ve managed to get WP installed on my local host (XAMPP), and I have a basic theme on there and it looks pretty much how I want it. The home page is pulling from a header.php and I’ll eventually make my footer.php. So I understand that most basic build of a page.
Where I start to get lost is creating templates and such. I created a template last night, but when I was trying to put text or what have you in the text editor on WP, nothing would show after update on the page.
I could edit the actual PHP file of the page and get it to display what I wanted, but that sort of defeats the point of wordpress i think?
I know this is sort of rambling but my problem is that theres so many techniques to do everything, and so much info out there I’m not sure what I should do to get to the skill level I need to be at.
For instance, on the site I am developing I would like to have a page called “Beat Making Videos” and a page called “Producer Interviews”
Originally I was planning to just to 4 column rows each containing a youtube video and a brief description. I know this will KILL my load time so I started looking into replacing a preview image with the embedded iframe on click using Javascript. Before I go too into that, I thought it might be a good idea to just have those pages display like blog pages, with posts or whatever. It would be a preview image and a brief description with a read more link that could take you to the post that contained the video.
It seems like I should be able to set something up in wordpress to where I can make a new post, and assign it to a page or whatever and it will show at the top as the most recent post on that page.
Because what’s the point of using wordpress if I’m just going to edit source files and not use the wp-admin area for anything lol.
TL;DR
I’m info overloaded and don’t know what to study to get the skills I need. Should I beef up my javascript, html, and css skills before diving into PHP and working with wordpress, or should I study JS and PHP at the same time????
I’ve tried reading the codex and it gives me a great broad picture of how this system works and what’s going on, it’s just that I feel like I’m missing pieces and can’t really utilize the codex info.
I hope someone didn’t mind taking the time to read all this and I hope it makes some sense!
Thanks in advance!
-Alex
]]>https://www.ads-software.com/plugins/page-specific-menu-items/
]]>How can I have custom sizes for my pages?
Also is it possible to have clear see-thru templates so there is no white box at all? All you see is my gallery or slideshow or text against the background image? (I have seen this available in other themes).
My site:
I do appreciate any help you can give me. Thank you in advance.
#primary-2, #content-2, and #secondary-2
to style the secondary pages. The problem is that while all pages look great on a computer screen, the secondary pages are larger in mobile devices, running off to the right side of the screen.The site is mendocinowoodlands.org/mwca.
My CSS for the 2 sets of page structure:
(I have nothing added or mofified to media queries at this point)
#page {
margin: 0 auto;
width: 1000px;
}
#primary {
float: left;
margin: 0 -26.4% 0 0;
width: 100%;
background-color:#F0e0c1;
background-image:url(https://mendocinowoodlands.org/mwca/wp-content/uploads/content-back.jpg);
background-repeat:repeat-y;
}
#content {
font-family:'Giovanni-Book';
font-weight:normal;
font-style:normal;
font-size:15px;
line-height:20px;
margin: 0 22.7% 0 15%;
width: 62.25%;
}
#extra-sidebar {
float: right;
margin:0;
padding:30px 15px;
width: 19.8%;
}
#secondary {
position:relative;
float: left;
width: 13.5%;
margin:0 0 0 -73.6%;
padding:40px 0 0 15px;
background-color:#bfbe9f;
background-image:url(https://mendocinowoodlands.org/mwca/wp-content/uploads/sidebar-img.jpg);
background-repeat:no-repeat;
}
#primary-2 {
float: left;
margin: 0 -26.4% 0 0;
width: 100%;
background-color:#F0e0c1;
background-image:url(https://mendocinowoodlands.org/mwca/wp-content/uploads/content-back.jpg);
background-repeat:repeat-y;
}
#content-2 {
font-family:'Giovanni-Book';
font-weight:normal;
font-style:normal;
font-size:15px;
line-height:20px;
margin: 0 22.7% 0 15%;
width: 62.25%;
}
#secondary-2 {
position:relative;
float: left;
width: 13.5%;
margin:0 0 0 -73.6%;
padding:40px 0 0 15px;
background-color:#bfbe9f;
background-image:url(https://mendocinowoodlands.org/mwca/wp-content/uploads/sidebar-img.jpg);
background-repeat:no-repeat;
}
]]>