• Tom Ewer

    (@tomewer)


    Hello! Apologies if this has been dealt with before – I’m sure it has somewhere, but unfortunately I couldn’t find it.

    I am using Platform 1.2.5 (free version) theme.

    I would like to put a small box at the top of my sidebar (to be shown on the home screen only), which has a short message welcoming people to my site and explaining what is what. I have been able to do this by inserting a text/HTML widget into the sidebar, but it is not as customizable as I would like. I really wanted a box that lines up symmetrically with the rest of the content in the side bar, with perhaps a lightly shaded background.

    How do I do this?

    Many thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • stvwlf

    (@stvwlf)

    Hi – What you are asking for are adjustments to the site’s CSS stylesheet. You will get the best results if you post the URL of the page that has the issue you want help with. The answer will be unique to your site and preferences

    Thread Starter Tom Ewer

    (@tomewer)

    Hi, thanks for your response! The website is http://www.modelingforkids.net/. You can see that I currently have the welcome text set up as a block quote. Ideally the box would be the width of the side bar, and the text would not be italic.

    stvwlf

    (@stvwlf)

    Hi

    First, the sidebar text in the widget is wrapped in <blockquote></blockquote> tags. It looks like they are part of the text you entered. I suggest replacing the blockquote tags with <p></p>. Just doing that will remove the italics and the left side indent, and possibly the background color.

    There will be more to do. Let me know after you’ve made that change and I’ll look at what you need to do next.

    Thread Starter Tom Ewer

    (@tomewer)

    I’ve managed to format the text as I would like with inset style settings. Is there any way to have it so this widget only appears on the home page? Thanks!

    stvwlf

    (@stvwlf)

    Hi

    yes. Install the Widget Logic plugin
    http://wordpress.org/extend/plugins/widget-logic/

    This adds a conditional field in in the lower left corner of the widget box where you entered the widget text and styling.

    It looks like your home page is the site’s blog page. In that case enter into that box is_home()

    If you had a static homepage defined in Dashboard Settings / Reading you would enter is_front_page()

    Thread Starter Tom Ewer

    (@tomewer)

    That’s exactly what I was looking for, spot on, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Including Customizable Content In Sidebar’ is closed to new replies.