Why would a developer build all page content in php?
-
Picked up a new client. Site is built on Wordpress. Previous developer built nearly all page content in their custom theme's PHP files.
In other words, the theme's "page.php" file contains virtually all the HTML for each of the site's pages. Each individual page's back-end page editor appears blank, except for some of the page text. No markup, no widgets, no custom fields. And no dedicated, page-specific php files either.
Pages are differentiated within page.php using:
elseif (is_page("27")
Has anyone ever come across this approach before? Why might someone do this?
-
Thanks Bryan! I appreciate the time you took to respond to this. I'm sorry I didn't respond sooner!
Cheers!
-
The only reasons I can think of are:
- the developer might have been unfamiliar with Wordpress back-end editing.
- the developer is rooted mostly in PHP and thus favors that structure.
- there was something specific to the client's website that requires this method.
There are several possible reasons, and I think the only way to proceed safely would be for you or your client to get in contact with the previous developer and ask. Aside from that, looking through the PHP to see if there's a genuine reason is the next safest option.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Does changing content and design of the website gonna affect my all the backlinks i have made till now
i have been working on my link profile for a month now, after learning about 5 step moz methodology i have decided that i would like to change all of the content of my site and taylor it to what my customers need, am i gonna loose all the domain authority if make changes? if it gonna affect, hows that gonna come out
Web Design | | calvinkj0 -
Should i be using shortcodes for my my page content.
Hello, I have a question. Sorry if this is been answered before. Recently I decided to do a little face lift to my main website pages. I wanted to make my testimonials more pretty. Found this great plugin for testimonials which creates shortcodes. I love how it looks like, but just realised that when I use images in shortcodes, these are not picked up by search engines 😞 only text is. Image search ability is pretty important for me and I'm not sure if I should stick with my plain design and upload images manually with all alt tags and title tags or there is a way to adjust shortcode so it shows images to search engines. You can see example here. https://a-fotografy.co.uk/maternity-photographer-edinburgh/ Let me know your thoughts guys. Regards, Armands
Web Design | | A_Fotografy1 -
Recommendations for top notch US based WP developers
I have a client that needs to get a WP template completely revamped. They work in residential contracting and this website will be for lead generation. The current WP template has several problems with load speeds, structured data, SSL issues, mobile template problems (most critical issue) and other issues. Their budget is $5K to $12K.
Web Design | | RosemaryB
Does anybody know of any US based (MUST be accessible by phone number) WP Developer who has a strong knowledge of SEO & Conversion optimization? Thanks0 -
Will changing product from Grouped to Simple on my magento category page affect my SEO?
Hi all, A category page on my site http://www.porcelainsuperstore.co.uk/wood-effect.html currently ranks number 3 on Google for the keyword "Wood Effect Tiles" We're currently reorganising some of our product and I would like to know if this is going to affect the SEO and ranking for the above page and keyword. The majority of products on that page are magento grouped products. I would like to change the page so that it displays only the different constituent simple products rather than the grouped products on the category page. My question is, will this have any impact on SEO? I intend on leaving all other data on the category page the same - so the metadata and the description/title etc. Any help/comments would be much appreciated! Ben
Web Design | | piazza0 -
What to Look for in a Magento Website Developer?
I am considering moving 1 of our sites to a Magento e-commerce platform. If I went down this route we would be keen to find someone who we can hire in-house. However I have never hired a web developer before. What should a developer with experience of launching and building Magento-based e-commerce websites have on their CV? What should I be looking for in terms of knowledge? Any help or advice welcome!
Web Design | | DHS_SH0 -
Dynamic pages -windows server
Hi all, Hope I get an answer on clients site which I believe is hosted on a windows shared server. The output of the site is something like this: http://www.domainname.com/catering-sub.asp?maincate_id=6&maincate_name=Barware I am looking to get a URL friendly output for the site - as far as my knowledge I believe Htaccess doesn't work on this type of hosting? thoughts? Thanks in advance
Web Design | | OnlineAssetPartners0 -
I've set up my own site which is still fairly new but I'm a bit concerned that there is a bloackage SEO wise somewhere because when I try to crawl the site on SEOmoz it only crawls one page.
I'm really baffled and none of my research has shed much light on it. My url is www.emporiumofmanliness.co.uk I'd really appreciate any help! Thanks
Web Design | | JoshED0 -
Content Stacking - CSS positioning
I was curious to know what everyone thinks about CSS positioning so that the spiders will read a optimal bulk of content first - before it reads the others. Say I have some Tab's set up for navigational purposes, where the content in the last tab is actually what I want the bots to see first. What would be the best practices for accomplishing something like this?
Web Design | | imageworks-2612900