Make Changes to Wordpress Graphene Template - php

I have bee getting to grips with Wordpress and so far so good. The one thing I cant workout is how to edit the default template which is being used for my home page and any subsequent new pages I create.
My aim is to remove the "Comments" and "Latest News" that appear by default and instead setup my own image slider, text etc.
I just cant find the code that is setting what appears in the template.
So far, as well as lots of digging in the files, I have created a new child template and CSS to go with it but now I need some help.
Thanks all.

Related

How to change the layout of the default archive page in Wordpress?

I manage the website www.frijolichtreclame.nl and I've been working on making the URLs of the portfolio page and the projects beneath it the same for SEO purposes:
.nl/projects as the page where everything is combined, .nl/projects/project-name for each specific project.
But the layout on the .nl/projects page is not what I want it to be. Now I want to change that, but the default WordPress formatting always overrules my own wishes. Is there a way to change the layout to whatever I want? The website is made using Divi, but the Divi developers say these changes cannot be done.
Hope you can help me out!

What is the best way to bypass Wordpress's HTML sanitization so I can use bootstrap html in Wordpress?

I'm trying to get on developing websites on Wordpress for easier management for the future admins.
I have created a bootstrap theme on my own. I got all the pages smoothly into Wordpress and are now easy to edit. However I have this one page which has tables, buttons, glyphicons and once I click the "graphic" view while editing the page it breaks it.
So I was thinking that that won't do and I decided to create a new plugin to fix this problem. A simple plugin which has few textboxes on the admin settings page and then just prints the texts on the page where I want them to go.
However I tried to look for tutorials and I'm just overwhelmed. I have gotten my plugin to work somewhat. It has a admin setup page and it can print customized text to a page where my shortcode is. Thanks to this post!
However, I still don't know what to do from this point on.
My question is: Could you help me by giving me an example code to get the same kind of textbox to my plugin's admin page as I have while editing/adding new pages (with graphic view) which saves the text and displays it on a page.
I have no idea if this is the way to go but I can't think of anything else right now. I was thinking that the settings page has a couple of textboxes and the text in them goes where I want it to go on a page. So the future admin won't see the unnecessary html code and therefore can't break it.
I would abandon the "plugin" idea. There are several more elegant ways to do this besides writing a plugin.
By far the easiest to implement is this:
1. Store the html in a "Custom Field" https://codex.wordpress.org/Custom_Fields
2. Display the contents in your page (or post) template https://codex.wordpress.org/Custom_Fields#Displaying_Custom_Fields

Standard HTML & CSS to wordpress page

I created a webpage in Standard HTML and CSS and everything looks / works exactly how I want it too.
Now I need it to appear as it is on a wordpress site (http://www.texasenergyessentials.com/). I already created a template page and can see it in the template select in the wordpress "add new page" window. I was hoping I could just select the template and leave the text editor blank but that doesn't seem to be the case. All I get is a completely un-formatted page that says welcome guest.
What is the easiest way to get https://gist.github.com/anonymous/8545681 to work on the aforementioned wordpress site? ?
Thanks!
P.S. Please don't link any codex files I just spent 2 hours digging around in them :(
Try to read and understand how http://codex.wordpress.org/The_Loop works
Install this theme https://code.google.com/p/wordpress-naked/ and try to work your way to the desired theme by editing theme files. That will be much easier.
Maybe the problem can be understood by reading the template hierarchy:
http://codex.wordpress.org/Template_Hierarchy
(especially check the visual overview)
If you name your file page-[insert-page-id-here].php Wordpress will use it for the page you've created. Get your page id by editing the page and looking it up in the url.

Cloning A Page But Use A Different Widget Area

I hope someone might be able to help me with this. I have a page layout that top half is page template and the text area at the bottom is a widgetised area.
Previously to replicate a look of a page we have copied and altered the page template, added a new widget area and called that into the new page.
However, I have tried to do this and I am not sure what I have done but I cant get it to call the correct widget area.
The original page is http://www.haylockpittman.co.uk/painting-and-decorating/ which is newpaint.php the template was copied, altered and uploaded to create http://www.haylockpittman.co.uk/builders-painters-decorators-and-refurbishment-contractors-surrey/ which is surreypaint.php
We created a new sidebar called "Surrey Paint" and widget area has been filled in with different text. However, despite everything looking like it is fine and calling up the correct sidebar it is still calling up the widget area from the original page.
Any help to perhaps point out where I am going wrong would be much appreciated.
Thanks
Make sure your new page is referencing the correct sidebar.
http://codex.wordpress.org/Function_Reference/get_sidebar
It is possible that the theme you started with might have that function buried within a few includes...so some refactoring might be needed.

Edit WP html code, but cannot find the page

I am new to Word Press and I have been assigned to change something at work in our homepage.
I am always worked with raw HTML/CSS/php files, so I am a bit out of place here.
The page in question is the following: GAN Integrity Solutions Products
Inspecting the html I found where the CSS is (in the theme folder).
If I go in word press under pages, and I choose Products (which is the page I want) there is not content in it even in the text or visual editor. (but the page does indeed have content)
I installed the plugin called "Always edit in HTML" but it only removes the Visual tab and does not really replace it with the HTML tab (like I have seen a friend of mine has).
Also I am currently using WP v. 3.7.1 and I have not update because I still had to learn what happens when one updates (does it screw up my site? I can't afford to screw it up).
Anyone have any idea of what I am doing wrong or how I can solve this?
Btw the different "products" are created individually under "Portfolio" but what I would like to edit is that first link page html. What I need to do is instead of having pictures in the "squares" and then text as ones mouse over them, the reverse.
I would appreciate it!
Can you try to login in Wordpress?
You should go to pages and search for the product page.
Then check the template part.
Go to your themes map again and search for that template.
Your code should be there.
This is my first comment. Hope it is helpfull.

Categories