Forum Replies Created

Viewing 15 replies - 46 through 60 (of 113 total)
  • Thread Starter agileArt

    (@pdxdaniela)

    this 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

    Thread Starter agileArt

    (@pdxdaniela)

    Thank 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; ?>">
    Thread Starter agileArt

    (@pdxdaniela)

    well. 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.
    D

    Thread Starter agileArt

    (@pdxdaniela)

    ok…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.

    Thread Starter agileArt

    (@pdxdaniela)

    cataustic that looks really interesting.
    but still not sure if it would work.
    right now i have

    page 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.

    Thread Starter agileArt

    (@pdxdaniela)

    apreciate 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”

    Thread Starter agileArt

    (@pdxdaniela)

    never mind. It is
    <?php the_post_thumbnail( ‘category-thumb’ ); ?>
    in case anyone else needs this.

    Thread Starter agileArt

    (@pdxdaniela)

    🙂 thank you WPyogi!
    I actually use chrome for debugging. And I was looking at everything but that typo…
    But good eyes folks!

    Thread Starter agileArt

    (@pdxdaniela)

    never 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
    D

    Thread Starter agileArt

    (@pdxdaniela)

    in the word’s homer simpson…
    “D’OH!!!” * face palm
    Thank you Andrew & WPyogi I had totally missed that!

    Thread Starter agileArt

    (@pdxdaniela)

    the 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.
    D

    Thread Starter agileArt

    (@pdxdaniela)

    hello 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>
    Thread Starter agileArt

    (@pdxdaniela)

    Sorry 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.

    Thread Starter agileArt

    (@pdxdaniela)

    kjodle…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.

    Thread Starter agileArt

    (@pdxdaniela)

    doesn’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

Viewing 15 replies - 46 through 60 (of 113 total)