Skip to:
Content

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2749 closed enhancement (fixed)

Add custom background function to theme

Reported by: karmatosed Owned by: DJPaul
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Theme Keywords:
Cc:

Description

Add the custom background function to the default theme

functions.php: ADD:

// This theme allows users to set a custom background
add_custom_background();

default.css body{}: CHANGE *remove the background image:

body {
background: #eaeaea;

Change History (4)

comment:1 DJPaul3 years ago

  • Owner set to DJPaul
  • Status changed from new to assigned

comment:2 DJPaul3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

This was fixed in r3458; I forgot to make a note on the commit, sorry.

karmatosed - Rather than take out the background gradient image, I switched it from the shorthand property to the individual properties which are then overridden by the CSS that WordPress inserts into the page head.

comment:3 DJPaul3 years ago

sidebar-footer.php was lifted from Twenty Ten, so props to the WordPress team for that, and I'm sorry again for forgetting to note this on the commit ticket.

comment:4 djpaul3 years ago

(In [3496]) Refactor functions.php to use appropriate theme-loading actions.
Improved support for custom thumbnails; now supports global page header as well as a per-post/page header.
Key functions are now hookable.
Add full phpDoc.
Props to the WordPress team and Twenty Ten for some of the phpDoc.
Fixes #2749, #2754, #2751.

Note: See TracTickets for help on using tickets.