webdevRefinery Forum: What is wrong with Wordpress? - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 01 August 2010 - 01:45 PM (#1)

What is wrong with Wordpress?


Okay well,

it is all about this Wordpress site:

http://hatekitchen.com

The template it is using appears to suppress all other CSS styling. For example this page:

http://hatekitchen.c...ffin-in-a-mug-2

On another template, the recipe was styled nice and everything was OK. On the new template, it's just plain text. And I dont know why.

Here's the template's CSS file:

http://pastebin.com/mkVzXqjz

Maybe you can find the error in there. I'm not into CSS that much.


Thanks!

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 08:29 AM (#2)

I invested 3 hours today in order to resolve the problem, but still no result. Has someone got a idea?

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 02 August 2010 - 08:58 AM (#3)

It's because all of the classes you're referencing in your markup aren't actually present in any of the CSS files you're including. Have you defined them all in a different file, or in an older stylesheet for another theme or something?
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 09:44 AM (#4)

This is the CSS file used to display receipts:

http://pastebin.com/zvSqiysh

Maybe this helps.

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 02 August 2010 - 09:55 AM (#5)

Where do you embed this in your page, though? You need a <link> element somewhere so the browser knows to download that stylesheet and apply its styles to the page. You could do this by editing your header.php file for your theme in WordPress, adding this somewhere before the </head> closing tag.

<link href="/path/to/file.css" rel="stylesheet" type="text/css" />


;)
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 10:17 AM (#6)

It's the standard Wordpress installation.

I am just wondering why this theme's CSS supresses all styling in posts / receipts. For example, <strong> is not working, while <b> is.

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 02 August 2010 - 10:35 AM (#7)

Clearly you misunderstood me somewhere, so let me try again ;)

In the page you linked to (http://hatekitchen.c...ffin-in-a-mug-2), you're trying to use classes which you haven't defined in any of your CSS files. For example:

<div class="recipe-title">Muffin in a mug.</div>

<div class="recipe-section-title recipe-details">Details</div>


You have stacks and stacks of elements in your HTML that use classes which haven't been defined anywhere. In the CSS that you posted (http://pastebin.com/zvSqiysh), you've defined these styles, but you haven't included the CSS file in your HTML ones generated by WordPress, so they aren't being used. You need to edit the header.php file for your template and insert the code I posted above before the </head> closing tag. Here it is again:

<link href="/path/to/file.css" rel="stylesheet" type="text/css" />


The browser can't just guess what CSS files it should use to render a page, it has to be told which ones to use. You've got your CSS, and you've got your HTML, but you've missed the vital piece of code that links them both together and just makes it work ™.

As for the tags not working, create a post and just dump a load of examples of tags that don't work in it, and we'll try and figure out why. It might be WordPress encoding them wrong (it usually converts < and > to &lt; and &gt;), or it might be your theme's CSS. Hard to figure out with nothing to go by :P

This post has been edited by LukeCarrier: 02 August 2010 - 10:38 AM

0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 10:55 AM (#8)

View PostLukeCarrier, on 02 August 2010 - 10:35 AM, said:

Clearly you misunderstood me somewhere, so let me try again ;)

In the page you linked to (http://hatekitchen.c...ffin-in-a-mug-2), you're trying to use classes which you haven't defined in any of your CSS files. For example:

<div class="recipe-title">Muffin in a mug.</div>

<div class="recipe-section-title recipe-details">Details</div>


You have stacks and stacks of elements in your HTML that use classes which haven't been defined anywhere. In the CSS that you posted (http://pastebin.com/zvSqiysh), you've defined these styles, but you haven't included the CSS file in your HTML ones generated by WordPress, so they aren't being used. You need to edit the header.php file for your template and insert the code I posted above before the </head> closing tag. Here it is again:

<link href="/path/to/file.css" rel="stylesheet" type="text/css" />


The browser can't just guess what CSS files it should use to render a page, it has to be told which ones to use. You've got your CSS, and you've got your HTML, but you've missed the vital piece of code that links them both together and just makes it work â„¢.

As for the tags not working, create a post and just dump a load of examples of tags that don't work in it, and we'll try and figure out why. It might be WordPress encoding them wrong (it usually converts < and > to &lt; and &gt;), or it might be your theme's CSS. Hard to figure out with nothing to go by :P


God I'm sooooo dumb sometimes. I added it in all files, but the recipes are still not formatted, why is that?

EDIT: Found it out myself =3

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 02 August 2010 - 11:30 AM (#9)

Everything working now? Looks like it here :)
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 11:34 AM (#10)

Yep we're ready to take off :D

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


User is offline Ruku 

  • I do Linux and that Internet thing.
  • Group: Members
  • Posts: 1349
  • Joined: 17-April 10
  • Location/root
  • Expertise:HTML,CSS,PHP,Javascript,Python,SQL

Posted 02 August 2010 - 11:36 AM (#11)

Awesome - it's a fantastic idea :D
0


User is offline Mo3 

  • Brogrammer
  • Group: Moderators
  • Posts: 1950
  • Joined: 21-July 10
  • LocationStuttgart, Germany
  • Expertise:PHP,Java,Javascript,Python,Ruby on Rails,Node.js

Posted 02 August 2010 - 11:37 AM (#12)

View PostLukeCarrier, on 02 August 2010 - 11:36 AM, said:

Awesome - it's a fantastic idea :D


Thanks! You can help HateKitchen by submitting some fuckin' recipes :D

http://www.webdevref...dont-you-fatty/

Quote

A person who thinks all the time has nothing to think about except thoughts. So he loses touch with reality, and lives in a world of illusion called the past. Things are not explained by the past, they are explained by what happens right now. That creates the past, and it begins here. That's the birth of responsibility.
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services