Martin Hugo
Member
Posted 1 year ago #
Ive been messing around alot with my template and I seemed to havew removed some code somewhere that allows my page to display a static page on the home page- now I get the post page in there instead as it is on default- any clues where I may have gone wrong? The dev site is tippfocus.intoweb.co.za
Look under Settings - > reading in the admin area.
Martin Hugo
Member
Posted 1 year ago #
I did have a look ver there- it is as it should be- I have set the home page to static and selected the blog as the section I want to display my posts on- I was working on some issues with page templates and I think somewhere along the line I must have removed some code for the selected template pagge but for the life of me cannot remember what I did. I'm looking for if statements or something that would call and differentiate the content with each other- but my php is amateur so I dont really know what to look for. I also changed some of the id's and classes in the themes- I dont know if this may be what is causing it.
Martin Hugo
Member
Posted 1 year ago #
I also removed the sidebar fromn the template I am using for home- dont know if somehow this is maybe affecting it.
Martin Hugo
Member
Posted 1 year ago #
checked the side bar- used different page templates, checked the header with my backed up version- nothing :'(
Or removed the template page...
you'll need a backup of your theme - preferably an unedited one so you can see what's missing.
Martin Hugo
Member
Posted 1 year ago #
is there not a code I can put in to force it to show the page? I have a specific template I am using for that page- but I would love to still bea ble to edit it to some measure from the backend
Well, not without knowing exactly what you did, no.
Damien Saunders
Member
Posted 1 year ago #
Hi Martin
You can create any old page as a static page ...
the key is to put the small amount of code in the top of the page so that WordPress can 'see' this page
Have a look at my post on creating landing pages / static pages
http://damiensaunders.com/blog/wordpress-use-a-custom-design-for-landing-pages-756
hope it helps?
Damien
Martin Hugo
Member
Posted 1 year ago #
Thanks for the tip Damien- the problem I have is that I still want to keep it dynamic with just a bit of code that I need to hard code- there are not plugins for some of the stuff I want to do- like the menu at the top- and the front page slider thingy.
I have solved the problem. It was with a widget I used called vertical scroll recent posts... If I use it normally it works fine, but if I use the hard code call then it makes my home page redirect to my post page.
this is the code I used to pull it in
<?php if (function_exists (vsrp)) vsrp(); ?>
I removed the code and now it is working fine- it's a pity because I liked the widget and the look and feel I was getting. What a waste of time looking in all the wrong places :/ I think I'm going to have to keep a tracklist of all changes I make for better debugging sigh.