agileArt
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: using wp to change classesthis is the site…
http://thebigmeow.us/home/
when you go
http://thebigmeow.us/engineering/
the main background image is supposed to change.actually i use chrome/inspect elements.
the prob is that the header itself is static. the pages change. but the header that has the <body>tag calling in the background doesn’t
Forum: Fixing WordPress
In reply to: using wp to change classesThank you WPyogi I went and checked it out.
and I changed the stylesheet accordingly.body.page-id-9{ margin:0px; padding:0px; background: #7db9e8; /* VERY Old browsers */ background:url('imgs/engineeringLgBGround.png') no-repeat #7db9e8; /* Old browsers */ background: url('imgs/engineeringLgBGround.png')that still did not over ride background image, I tried changing the body tag in the header to <body> only, w/no styling and that did not bring about the new background for the specific page.
& i have to had I am fairly new to wp. Can you help me tweak this code or have any other suggestions that could help please?
<body <?php body_class(); ?> id="mainBody"> <!-- start body--> <?php if($pagename == "engineering"){ $class = "engBody"; } else { $class="index"; } ?> <body class="<?php echo $class; ?>">Forum: Fixing WordPress
In reply to: using wp to change classeswell. thank you for trying to help…but you are really not reading my post.
the css is fine. works fine on a static site where each page has its own header section.
in wp several pages share the same header.php.
the header.php only has ONE body tag.
hence it only displays the background set for that tag on ALL the pages.
DForum: Fixing WordPress
In reply to: using wp to change classesok…that was not my stylesheet css. that was me typing on the fly.
& i know the diff between classes & ids.
but the point I am trying to make…
my <body> tag is in the header.php
it doesn’t change as the pages change. hence page b has the same header and same background image as page a.
That i what I am trying to change.Forum: Fixing WordPress
In reply to: using wp to change classescataustic that looks really interesting.
but still not sure if it would work.
right now i havepage 1
<body id=”mainBody”>
in the css.
#mainBody{bacground:url(‘etc…’);
page2
<body id=”engBody”>
in the css.
#engBod{bacground:url(‘etc…’);unless I put the <style>info</style> css directly in the head of the header…how can i change the backgrounds…seem like my ids or the classes you mentioned are the same thing.
and appreciate you mentining the # info.Forum: Fixing WordPress
In reply to: using wp to change classesapreciate that, but that is not the issue.
wp pages use the same header.
the body tag is in the header. but i want page “b” let’s say to have a diff body background than page “a”Forum: Fixing WordPress
In reply to: Loading most recent posts by category in a carouselnever mind. It is
<?php the_post_thumbnail( ‘category-thumb’ ); ?>
in case anyone else needs this.Forum: Fixing WordPress
In reply to: my css for a hover effect is not working🙂 thank you WPyogi!
I actually use chrome for debugging. And I was looking at everything but that typo…
But good eyes folks!Forum: Fixing WordPress
In reply to: Loading most recent posts by category in a carouselnever mind! it worked!
used
<?php query_posts('cat=engineering&tag=folger'); the_post(); ?>
w/the cat & tag. But this is kind of “hard coded” is a there a better way that would allow for someone who has no access/knowledge of coding the tag in by name to change this? like cat & post# maybe?& advice on how to load the image? Anyone tried it?
thx
DForum: Fixing WordPress
In reply to: my css for a hover effect is not workingin the word’s homer simpson…
“D’OH!!!” * face palm
Thank you Andrew & WPyogi I had totally missed that!Forum: Fixing WordPress
In reply to: my css for a hover effect is not workingthe are both displaying one on top of the other. The effect i had in the static site is at
http://www.danielamorescalchi.com/coreCorp/index.php
then if you hover over one the images swap.
DForum: Fixing WordPress
In reply to: my css for a hover effect is not workinghello WPyogi, i’d say no. this is the code on my page & all the tags look closed.
<div id="engSpan" class="span3 offset2"> <a class="aImg" href="<?php echo site_url(); ?>/engineering"> <img class="mg-btm" src="<?php bloginfo('template_directory'); ?>/animate/op01.jpg" alt="engineering"/> <img class="mg-top" src="<?php bloginfo('template_directory'); ?>/animate/op02.jpg" alt="engineering"/> <span>engineering</span></a> </div>Forum: Fixing WordPress
In reply to: how do I link a page to an imageSorry I tough i had made it clear.
this is an image in the custom php page. home.php.
there are three images there.
I want to custom link them to when the user clicks on the image it will take him/her to the appropriate page. A page created in the wp-admin panel.
yes.I am using editor.Forum: Fixing WordPress
In reply to: how do I link a page to an imagekjodle…as I said. that doesn’t work.
But thank you for the input.
as for no php in text editor,that doesn’t make sense as that is where you edit the loops and other php functions as well.Forum: Fixing WordPress
In reply to: how do I link a page to an imagedoesn’t work.
I tried the usual direct link coding as in a static site. didn’t work.
I tried<a href="<?php the_permalink('engineering'); ?>"> <img src="<?php bloginfo('template_directory'); ?>/imgs/hmEngMedImg01.png" alt="engineering"/></a>that didn’t work 404
I tried
<a href="<?php the_permalink('http://www.thebigmeow.us/engineering'); ?>"> <img src="<?php bloginfo('template_directory'); ?>/imgs/hmEngMedImg01.png" alt="engineering"/></a>another 404