Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. omerkhan01
    Member

    Hey Joern,

    I am using this image slideshow plug in called FCG Featured Content Gallery on one of my test development blogs.

    maaximummedia.byethost7.com

    Here is their web page.

    You can log in to my account with

    admin
    ironman21

    The Gallery works perfectly

    On both my casino style theme and my Wynton Magazine theme

    I have another blog using the same Wynton Magazine theme

    same log in details

    located at mmtest1.byethost22.com

    and I have the exact same settings and it is not working. Can you kindly help me with this. Maybe I have to change the file permissions or something?

    Omar

    NEVERMIND I GOT IT TO WORK.

    My question from yesterday was how do you divide the Diadema theme into a 3 column theme like Wynton. Is that even worth doing or just get a theme that has 3 columns?

    Lastly, if you look at the site in IE, it is left aligned, and the 3rd colume is off to the right.

    Can you help with this.

    Omar

    Posted 1 year ago #
  2. omerkhan01
    Member

    By the way, how would you add a boxed border around each post.

    I know it has to do with

    background: url(../images/pborder.jpg) no-repeat bottom;

    and then top, left, right.

    Like if I wanted to create a box around each post.

    For instance, on my siteThe left column in index.php is controled by

    Let's say some code inside of a Div="leftcolumn" region.

    I want each post in the category of let's say Ammazing Articles to have a thick border on all sides

    So would that mean

    creating a div region and then
    in CSS
    controlling border-top
    border-right
    border-left
    border-bottom
    and then border: solid; border-width: thin; etc.

    I want basically Joern,

    to Divide my posts into square boxes and have a border around them.

    Omar

    Omar

    Posted 1 year ago #
  3. first: from upper post about 3rd column off:
    there is a div borderright around that div homerightcol which makes this problem

    the styling: actually you put a div id or class around some content and give it a name, like there is div id 'homerightcol'
    an id is allowed only once per view, div class you can use multiple times.

    As you already guessed you make a div class 'frontpost' around each post, starting after

    <?php while (have_posts()) : the_post(); ?>

    <div class="frontpost">

    here is title and content as before

    </div>

    and closing before

    <?php endwhile; ?>

    do this in all columns (3x) in index.php

    now you have each post in a div and can add in style.css

    .frontpost {
    border:3px solid #CCCCCC;
    }

    Posted 1 year ago #
  4. omerkhan01
    Member

    That makes excellent sense!. I am getting this. Thanks man! i am going to try it and let you know.

    Omar

    Posted 1 year ago #
  5. omerkhan01
    Member

    That makes excellent sense!. I am getting this. Thanks man! i am going to try it and let you know.

    Omar

    Posted 1 year ago #
  6. omerkhan01
    Member

    It worked perfectly, Now what if I wanted to create some cell padding or space from one block to another

    So it it is not like

    U
    U

    but

    U

    U

    Actually I figured it out. I put a
    after the </div> tag after the endwhile statement.

    Also, Joern the white container that holds the content, is that usually called freefloat or something like that? I tried changing it's bgcolor to black and also the background from #CCCCCC to #000000 and it wouldn't do. You know I noticed that when I make a change to my style sheet there seems to be a large caching delay before my browser will pool from the server and not cache and reflect these changes.

    Omar

    Posted 1 year ago #
  7. Oh Omar, do not put <b> or <br /> or any styles directly in a .php file.
    This is what a style sheet is for.

    try
    .frontpost {
    border:3px solid #CCCCCC;
    margin-top:10px;
    }
    to get a distance from box to box

    with another background and bold font and some distance of text to border:
    .frontpost {
    background:none repeat scroll 0 0 #EEEEEE;
    border:3px solid #CCCCCC;
    font-weight:bold;
    margin-top:10px;
    padding:5px;
    }

    margin is outside the border, padding is inside
    anything valid would work, the style.css is full of samples..

    or black background and white text

    .frontpost {
    background:none repeat scroll 0 0 #000000;
    border:3px solid #CCCCCC;
    color:#FFFFFF;
    font-weight:bold;
    margin-top:10px;
    padding:5px;
    }

    all styling should be done in style.css and not in the .php file

    Posted 1 year ago #
  8. omerkhan01
    Member

    Hey man, I got how to configure the div frontpost. I mean the entire white background of the blog. Or the background behind the blog.

    So you see the blog container is white. How do you make it black. I tried a CSS edit and it didn't work. Also, what if I wanted to change the soft of off blue background of the page which is the background of the blog to let's say white.

    Thanks. I am getting wordpress customization/css/php so much faster by having you be my mentor. I promise you if I ever come there, I am taking you out for a big Bavaria Beer:))))o

    OH GUESS WHAT.

    I FIGURED IT OUT !!!I am getting this. Hey man, what is the best way to put a banner at the top. Would you code it in the main index file after div =header.

    Or put a div in index.php

    Like <div="mainbanner">

    and then reference it and position it in CSS

    using .mainbanner

    Also, I want to create a hover effect for the divides that we made.

    The boxes. I want when you go over them, for them to change into a light grey color.

    So our div is "frontpost"

    So in other words

    <div class="frontpost"

    So in CSS, could you do #frontpost a hover {

    List your properties

    like background-color:#CC0033;

    }

    Wondering.

    By the way, I was wondering how come

    sometimes I see in CSS for a div tag

    Just some things

    Like margin auto
    Or float:right

    What about the rest of the div's properties, where do you configure it
    Like background
    right margin
    left margin
    etc. You said you don't position in php files, so then how do you explain the div tags that are references in CSS with only 1 or 2 properties. Are they laid out with internal to the php style/div tags/properties or with html.

    Omar

    Quick question. I want t

    Omar

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):