• I am trying to customize a magazine theme and I’m having trouble adding a thin black border around the body. Here is my site (I don’t have a domain name yet): http://s445193607.onlinehome.us
    I imagine a thin line separating the white from the diagonal stripes. Here is my style.css:

    [ massive stylesheet removed ]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi Mate 😉

    Go to your style.css file’s line #170
    Find a rule “.main-container”

    and add these two properties to it:
    “border-left: 1px solid;
    border-right: 1px solid;”

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Make your CSS changes in either a Child Theme style.css file or Custom CSS plugin.

    Yes, a good advice from Andrew here.

    Whenever you you can try to make your changes in a Child Theme’s style.css file.

    Cheers Andrew! 😉

    Thread Starter mirko6

    (@mirko6)

    Thanks for the help! I didn’t even know child themes existed, the plugin made everything so much easier.

    Another question, is there a way to get the “read more”s up higher after the text on the home page? And maybe specify how many characters/words of text to include before it cuts off? The way it is right now with so much white space is so ugly.

    In your style.css file’s line #383 there’s this code:

    .post {
        float: left;
        margin-right: 2.4%;
        min-height: 285px;
        width: 100%;
    }

    If you change 285px to 250px that should get it higher..

    Regards getting more characters/words to be included. Well, it could also be already set in your theme files, what theme are you using?

    Thread Starter mirko6

    (@mirko6)

    It tried it but it didn’t change anything. I’m using Portal from mythemeshop.

    Do you mind creating a temporary admin username for me so I can access your site’s backend?

    So I can have a look myself if there’s something interrupting it, as I’m sure this should have worked.

    Thread Starter mirko6

    (@mirko6)

    My fault, I just changed it on the parent theme and it worked.

    Here are the login details if you have any idea as how to change the text displayed before the “read more”

    u: [redacted]
    p: [redacted]

    Never, EVER, post login details on a public forum! Change the password for that user now!

    Sorry, It’s my fault then for asking the details.

    In your index.php file there’s function called “excerpt” that’s where you change how many characters to show. I set it to 150.

    Then you just have to adjust your style.css again.

    .post on line #383
    set min-height to 400px

    as well as

    .post-content on line #409
    max-height to 210px

    It will work 😉

    Thread Starter mirko6

    (@mirko6)

    Sorry didn’t even think about that.

    James, thank you so much for your help! I’m adjusting it right now.

    Let me know how it goes.

    Looks like it is working, right? 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How can I add a border around the body of this magazine template?’ is closed to new replies.