Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Using a page template with only CSS settings from Theme Options...


  #1  
Old Dec 31, 2009, 08:40 PM
Masselyn
 
91 posts · Jan 2009
So. California
This might be simple - but is it escaping me. I have created a new page template because I wanted to have my client's newsletter show up on a page by itself (no header, footer, or any other formatting dictated in Theme Options). Problem is that these newsletters require CSS that is currently in the Theme Options (ha!), but of course it is not pulling that. How can I tell the template page to pull only the CSS settings from Theme Options, but nothing else?

Thanks in advance.
  #2  
Old Jan 1, 2010, 05:28 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
copy index.php and remove the stuff you don't need
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 3, 2010, 05:22 PM
Masselyn
 
91 posts · Jan 2009
So. California
I did that, and I removed the:

PHP Code:
<?php     /* get all options: */
include (TEMPLATEPATH '/functions/bfa_get_options.php');
get_header(); ?>
from the top because I didn't want it to pull settings from the Theme Options. Then, I realized, I was also not pulling CSS that I had inserted there which are needed for these pages. Perhaps an easier way would be : how can I have CSS rules assigned to this new template without it trying to use the ones that are being used by the other templates in the Theme. Is there PHP where I can even just have it pull from an external CSS file that I set up for it?

Thanks.
  #4  
Old Jan 12, 2010, 06:46 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
I too am trying to build a page template. I want all the CSS to be there but in my case I don't want the header, logo, etc. on the page. I'm just going to put a link to the home page at the top.

I have tried many iterations of modifying the index.php with no success.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Jan 12, 2010, 07:09 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
larry, just add some CSS to prevent the display on your page ie.
HTML Code:
/* ================================================ */
/* CSS to remove header image area from a page   */
/* ================================================ */
body.yourpageid div.header-image-container {
	display: none !important; 
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jan 12, 2010, 07:12 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
"That was easy". Sometimes I look too hard.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Jan 12, 2010, 07:53 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
I spoke too soon... The page Id in my case is 1460 so I used the following.
Code:
body.1460 div.header-image-container {
	display: none !important; 
}
It didn't work. Just using div.header-image-container with a display of none does of course remove the image from everywhere but the page selector isn't working. Is my syntax correct?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #8  
Old Jan 12, 2010, 08:14 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you need 'body.page-id-xxxx'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add widgets to specific page IDs through the Atahualpa Theme Options area? cab262 Sidebars & Widgets 2 Dec 9, 2009 07:52 AM
3.2 Version - Page Menu not responding to settings in Options TOB Page & Category Menu Bars 1 Aug 27, 2009 11:39 AM
Using Atahualpa Theme Options settings as a template thetravelchronicle Forum How-To 2 May 31, 2009 08:04 AM
Bug: Atahualpa 3.0 Theme Options > Page Menu Bar bseppa Page & Category Menu Bars 5 May 9, 2009 08:59 PM
Atahualpa 3.0 Theme Options > Page Menu Bar - Page Error on Save bseppa Atahualpa 3 Wordpress theme 9 Dec 12, 2008 05:35 PM


All times are GMT -6. The time now is 02:15 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.