• Hi folks
    I am no great web designer. I am trying to embed wordpress in my homepage, to use it as a news manager.
    Here is the link
    https://lnx.cnomania.it/wordpress/index2.php
    I have copied and pasted the index code into a table on my homepage. I have created a new stylesheet, named ws-cno-layout.css, and I have linked inted the embedded “index” to this stylesheet.
    As you have probably noticed, I have a few problems.
    1) I have been able to eliminate the wp menu on the right, but the content frame is still centred; I’d like it to expand in my table, bot on the left and on the right? What should I change? The page code or the css code? And where?
    2) Can I link a css page to another css page? I wanted to include my style page in this css page; can i do it with an external link?
    3) Why some characters (?3 and ??, for example) appear correctly on my “regular” index page (https://lnx.cnomania.it/wordpress/index.php) and not in the embedded one?
    Thanks in advance,
    Davide

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter nutsmuggler

    (@nutsmuggler)

    UPDATE
    1) My only trouble is the upper margin, which is too big now, even if in the content section I have set it to 0.
    PS: don’t worry about the wordpress link, I’ll set it back, hopefully integrating it in my site layout

    Well, staring at your source code, it’s a mess. You have ‘head’ section inside ‘body’ and other stuff. You need only one ‘html’, one ‘head’, one ‘body’ in one page.

    <html>
    <head>
    <!--stuff-->
    </head>
    <body>
    <!--stuff-->
    </body>
    </html>

    You might want to start with wordpress’ default index.php. Don’t touch anything inside ‘head’. Delete everything within ‘body’ except ‘content’ section. And build up from there

    One easy was of incorperating WP into an HTML site’s layout is by using an iFrame (short for Inline Frame). Open the page you want to incorperate WP into, and create an iFrame with whatever attributes you need to match your sites layout. That–in essence–creates a frame inside of your page without using a ‘frames’ or ‘table’ based template….it would look something like this…
    <iframe
    src =”https://www.YOURSITE.com/wordpress-1.0.2/index.php&#8221; frameborder=”0″ scrolling=”no” name=”wordpress_blog” width=”444″ height=”1000″ >
    </iframe>
    By adding ‘framborder=”0″ there won’t be a border around the frame and most people won’t notice that its an entirely seperate site. Also by using the approach, links clicked inside the iFrame, refresh only that iWindow and thus don’t navigate your guests away from your main website.
    Of course this isn’t the best approach in all situations…but it may serve what you’re looking for. Let me know if you have any other questions. Also, you can go a google search for iFrame for more attribute settings.
    ciao!

    Thread Starter nutsmuggler

    (@nutsmuggler)

    Thanks a million ?? The iframe tag is exactly what I needed!
    I have just a small question: how do I make the frame extensiblein height (that is: I want it to resize according to the blg lenght). I have tried to delete the height attribute, but it apparently sticks to some 200 px or so…
    Cheers,
    Davide

    nutsmuggler, it’s been awhile since I’ve looked at the attributes for iFrames (as I’m trying to move away from them) but if you still haven’t figured it out, let me know and I’ll see what I can find. I’m almost positive that there is a command to make it resize according to content….
    ciao!

    Thread Starter nutsmuggler

    (@nutsmuggler)

    Thanks a lot, but no worry. I’ve converted it all to css (it’s still on my pc, I haven’t uploaded it yet), I am setting the layout anew. I thought css were more difficult, they are actually easy and practical; I’ll be able to avoid dreamweaver templates, which behave badly…
    Thanks a million anyway, and don’t worry, I’ll be back as soon as I am stuck; and I’ll let you all know when the page layout is complete.
    Cheers,
    Davide

    glytch

    (@glytch)

    thanks idowens, that worked for me. before I was getting a small iframe box that wp resized. now it works fine with

    <iframe src =”https://www.teamplaylotto.com/grabagrand.htm&#8221; frameborder=”0″ scrolling=”no” name=”Grab a Grand” width=”434″ height=”650″ >
    </iframe>

    https://blog.teamplaylotto.com/?page_id=25

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress embedded’ is closed to new replies.