Default Pages with Theme Install - wordpress-theming

I'm building a theme to be my deafult template to all my wp installs, I've managed to sucessfully create a theme options page and I can integrate them a page theme, but for this to work it is required that I create a new page, for instance, "Privacy Policy", set the page theme to my costum page theme that calls theme options, publish the page, modify the theme options in admin area. This works, but this is nto what I'm lookig for,
What I want is a pipeline that goes like, ->install theme->configure theme options-> done
I want to skip the process of creatign a new page and applying the page theme to it, I would like do this "hardcoded", like, a link in the footer to /privacypolicy.php", problem is that it does not work this way, I'm guessing this would be something related to .htaccess, like adding the permanent redirect to the full themplate directory / targetpage.php / and redirect it to something like "blogurl/privacypolicy", is it? the probleme is I know squat about configuring a .htaccess redirect or whateverm what should I do?
Thanks

Just an idea...what if you setup a clean WordPress install using the theme you developed. Add a page and put in the content that you want (Private Policy) and then extract the page entry from the table that WordPress stores it in and convert it into a sql statement which you then execute when your theme is activated. Make sure though that the page does not exist yet. Hope this helps.

Related

How to use another theme and create a new site on redirected site

how to create another website on redirected site?
I want to use another theme and create a new site on redirected site without remove redirection of that site. So is it possible?
You can create another website on a redirected site by using subdirectories or subdomains.
Like, if the redirected site is abc.com, you can create a new website at abc.com/new-website. The redirection will still be in place for the main domain, but the new website in the subdirectory will have its own separate theme, content, and functions.
Or you can use subdomains. So, if the redirected site is def.com, you can create a new website at new-website.def.com. Even here, similar to the previous scenario the subdomain will have its own separate theme, content and functions.
Do you want to use the same Wordpress cms or custom? First, create a sub-folder in your file manager using addon domains. Then, you can work and test the website. Let me know if you have a question.

Joomla - Add html code to BACKEND template manager of protostar

I am trying to make protostar template BACKEND more user friendly. I want to add a left sidebar with options such as "Fonts", "Layout", "..." etc. I also would like to be able to style the backend options, fieldsets and fields.
Please note: This question is for the Joomla administrator backend and not for the front end site.
I know html and css well but I dont know where to override the backend template manager looks like some of the theme providers do. For example:
https://farm9.staticflickr.com/8609/16244287038_cdff31be92_b.jpg
Thanks
If you look in the administrator/templates/isis folder you will find the default backend template. here you can edit the index.php file to suite your needs. I would make a copy of isis and rename it to something else and then activate it via the template manager in the backend. This way, when the site is updated your template wont be overwritten.

Integrating a Back button

I have this theme http://themes.two2twelve.com/site/fluidapp/light/ installed on my website running wordpress. I converted the template to a wordpress theme by following the steps here: http://thethemefoundry.com/blog/html-wordpress/ and its all working fine.
However, I have now been given the crazy task to integrate a "Back button" function in it.
What they want is to have some sort of Back button functionality (or the browser one) so when they open Team and they press Back - they go back to Home. The template is basically one-paged, you can see so in the source code.
One way I can see this happening is if I make every page a different .php file, upload them to my theme folder and then just hyperlink them. like www.yoursite.com/team.php
Another possible way (I think) would be to create a page.php template file and then post the pages using wordpress. Question: How do I tell wordpress to use page.php as the page template file?
Can you think of another way to integrate this functionality? Thanks a lot in advance.
If it always is going to return the user to the startpage you could just use the home_url(); function.
Back
If you got more advance structure and you want the button to just redirect the user back one page, you should use javascript.
Back
page.php is the default template for wordpress pages. So if no other is selected in admin, page.php will be used.
If you're using javascript to load the new content, you could use javascript pushState()and popState() to log the stuff to new url's, and it gets added to the browser history. Here's an example.

Suspect wordpress is not setting cookies

I'm trying to make a simple login form.
The wordpress function
is_user_logged_in() always returns false.
I don't want to use any pre-existing themes for wordpress, and I want to simply add wordpress functionality to an existing page.
I checked the cookies on my page with the form, and none are being set.
The wordpress install is located at:
http://localhost/newgameplus/wordpress/
The testings script is located at:
http://localhost/newgameplus/TEST/scripts/php/testWP.php
EDIT:
Solved this issue by going to wp admin panel, and changing the options.
Settings>General Settings
Adjusted site Address to reflect the actual website location.
Your script is running in a different web space to the WordPress install. To access the Wordpress functionality you'll need to be working on the site within the wordpress web space - ie the
http://localhost/newgameplus/wordpress/
directory

Getting plain HTML/CSS versions of Wordpress themes, no PHP?

where can I find elegant looking Wordpress (or not Wordpress, but similar style) themes in plain HTML/CSS format, without all the php?
thanks.
View the page source of the theme preview page in your browser. Save the code.
Easy for one page. Difficult for many pages.
You need to see in browser each page you want to get the HTML/CSS.
Firefox Menu > View > View Source
IE Menu > View > Source
A good way not only to save but to study the design and HTML/CSS structure,
use FireBug, Firefox addon. I am very sure it save lots of time and you will love it.
I'm not sure what you mean in your question.
If you mean, "Are there themes for Wordpress that don't require php?" then the answer is no. However, you don't actually need to know php in order to use these themes. You can just load them and then alter only the CSS.
If you mean "How can I adapt a Wordpress theme for a non-Wordpress site?" then you'll have to do this yourself, manually. First make sure you are using Firefox and install Firebug. Go to a site that has the theme that you want and then open up Firebug.
Under the HTML tab you'll be able to see the static HTML of the page, after it has been processed by the backend PHP. Just click "Edit" and then copy and paste everything in there into a new file. Then click the "CSS" tab and go through each style sheet, again clicking on Edit in order to copy and paste everything into new files, 1 for each sheet. Then stick all of the files into a folder and edit the header of the html file to make sure the external stylesheet links are pointing to the stylesheets you have created. Open it up in a browser and it should look just as you want it to.