ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

style sheets not working....

April 14, 2011 5:38pm

Subscribe [4]
  • #1 / Apr 14, 2011 5:38pm

    farberrifkin

    31 posts

    this page with no expression engine code and it works perfectly…
    http://www.hhdc.com/index.php/site/index.html


    this page with expression engine code and the div doesn’t work.
    http://www.hhdc.com/index.php/site/indexee.html

    here is the problem code….
    <div id=“head”>
    <div id=“promo”>{exp:channel:entries channel="promo"
    limit="1" disable="pagination" }

    {promo_head}

      {/exp:channel:entries}
    </div>
      <br class=“clear” >
    </div>

    thanks

  • #2 / Apr 14, 2011 9:17pm

    Cheif

    626 posts

    Why does the 2nd URL have .html extension ? EE does not use the .html (or any) extensions (aside from index.php)

    Also on that 2nd link this script tag “src=Scripts/swfobject_modified.js” is pulling in some really strange content, it looks like it’s pulling the entire pages html code.

  • #3 / Apr 15, 2011 12:53am

    farberrifkin

    31 posts

    I TOOK OUT THE HTML…AND JUST LEFT IN THE PROBLEM CODE.
    HERE’S THE PROBLEM CODE…http://www.hhdc.com/index.php/site/indexee

    Also on that 2nd link this script tag “src=Scripts/swfobject_modified.js” is pulling in some really strange content, it looks like it’s pulling the entire pages html code.
    THAT IS FOR THE GALLERY…WHICH I THINK I CAN FIX…AFTER I RESOLVE WHY IT SEEMS TO IGNORE MY CSS WHEN IT’S IN CSS.

    THANK YOU

  • #4 / Apr 15, 2011 1:52am

    Cheif

    626 posts

    Your css is loading but your code is incorrect, you have a “p” tag inside a <h2> tag as well your outputting multiple “br” tags instead of just one. I edited them via firebug and works swimmingly.

    Your template code looks fine, id look at your WYSIWYG {promo_head} for the issue as it is most defiantly an error on entering the copy.

  • #5 / Apr 15, 2011 6:28am

    John Henry Donovan

    12339 posts

    Let us knwo where you are with this one farberrifkin

  • #6 / Apr 15, 2011 10:09am

    farberrifkin

    31 posts

    thank you for your quick response!....i am going to take some time to check and organize this weekend.

  • #7 / Apr 18, 2011 9:17am

    Sue Crocker

    26054 posts

    Sounds good.. let us know what you find out. We’ll be here.

  • #8 / Apr 18, 2011 3:34pm

    farberrifkin

    31 posts

    I am baffle…(which isn’t difficult)
    i don’t know if this is because of a preference i put in on the entry…
    or something dreamweaver decided to add….

    This is the copy that i put in my entry..
    Tours for 2011

    Sun., May 1, Sat., May 7 and Sat., May 21.

    Call the office for an appt. at

    973 | 895 | 3200


    This is the code that i put in my template….
    <div id=“promo”>
        <!—/*ee_ promo*/—> 
      {exp:channel:entries channel="promo"
    limit="1" disable="pagination"}

    {promo_body}

    {/exp:channel:entries}
      <!—/*ee_ promo*/—>
    </div>


    I checked firebug…and i saw   which i am guessing is the problem..
    but i didn’t put it there….

    please advice…

    thanks again.

  • #9 / Apr 18, 2011 11:14pm

    Cheif

    626 posts

    It appears whatever u intended to write here , didnt get parsed, needless to say we don’t exactly what your issue is.

  • #10 / Apr 19, 2011 12:14am

    farberrifkin

    31 posts

    When i looked at the page source…via firefox…
    there is an additional “p”  “/p” I didn’t add this code.

    Here is the code via firefox…
    <div id=“promo”>

    “p”

    Tours for 2011 Sun., May 1, Sat., May 7 and Sat., May 21. Call the office for an appt. at 973 | 895 | 3200

    </div>
    “/p”
    _________________________________________________

    Here is the code that i used for my template…
    <div id=“promo”>
    {exp:channel:entries channel="promo"
    limit="1" disable="pagination"}

    {promo_body}

    {/exp:channel:entries}
    </div>


    Also below is what the copy looked like in my entry….

    Again, I am not sure where   appear.

    If it helps i am using dreamweaver cs5.
    this link is how it’s appear…
    http://www.hhdc.com/index.php/site/indexee
    This is link is how it show appear…
    http://www.hhdc.com/


    Thank you for your patience.

    Dorrie

  • #11 / Apr 19, 2011 5:20pm

    Sue Crocker

    26054 posts

    farberrifkin, what is {promo_body}? Is it a text field or a textarea field?

  • #12 / Apr 20, 2011 6:49pm

    farberrifkin

    31 posts

    Field Type-Textarea
    Is this a required field?-yes
    Is field searchable?-yes
    Textarea Rows-3
    Default Text Formatting for This Field XHTML,
    Allow override on publish page?-yes

    Sorry for the delay in getting back to you…
    thanks all..again

  • #13 / Apr 20, 2011 11:15pm

    Cheif

    626 posts

    I’d imagine that the textarea being XHTML is adding this automagically - disable this functionality by setting the formatting to none. This will remove all formatting applied by XHTML and mean you’ll have to manually wrap the output of the custom field.

    You can read more about this in the documents: http://ellislab.com/expressionengine/user-guide/general/text_formatting.html

  • #14 / Apr 21, 2011 3:09am

    John Henry Donovan

    12339 posts

    farberrifkin,

    What Cheif says is what we recommend. Switch your Default Text Formatting for This Field to none

    Also for future reference wrap any code examples in the tag [ code]  [ /code]
    You have a button for it in your reply box or when creating anew thread. It makes your code more readable

    <div id="promo">
    {exp:channel:entries channel="promo" limit="1" disable="pagination"}
    {promo_body}
    {/exp:channel:entries}
    </div>
  • #15 / Apr 21, 2011 1:03pm

    farberrifkin

    31 posts

    thanks for all you help…
    i am not sure why it’s still not working….

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases