• Hi,

    I am using Genesis and the Brunch Pro child theme. I have the pages set up with a primary sidebar widget area. In there I have added a text widget, and a latest blog post widget. These appear on every page, which is what I want. On the homepage only, I want to add an image above the text widget. I downloaded an image widget, and it works (not currently showing on my site, but I’ve had it working fine). However I want this to appear only on the homepage.

    If the solution involves editing css, I’d be hugely grateful for step-by-step help on how to actually find and edit css. I have another problem and I know the answer lies in editing css, but I couldn’t follow the instructions in the help forum archives as they just didn’t match the options available to me in WordPress (just posted in the css forum – blog posts with numbered lists showing with no spaces between list items).

    I have installed JetPack which enables me to ‘edit css’ but I can’t work out how this relates to individual pages. I just have a CSS Style Sheet Editor but it’s not linked up to pages/blog posts in any way, and that’s the part that really has me confused. I would expect to be able to see the css for any given page, go in, and copy a line of code to fix a problem – but it’s not like that.

    Any help would be very much appreciated.

    Thanks

    https://www.tstranscribing.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I’m afraid all solutions I can think of involve a bit of php, because a CSS only-solution will not be able to tell apart what is hompepage, and the rest of your content. CSS just can’t do that.

    That being said, there is a plugin I tried once, to display widgets only on chosen pages, it’s not very fancy but it was working, check on wordpress plugin directory. After, not sure if it’s compatible with Genesis.

    A last option would be to manually code the widget to display only on homepage, like in the WordPress loop.

    Regards,

    Thread Starter tanyasq

    (@tanyasq)

    Hi,

    Thank you so much for that.

    I didn’t think of adding a widget (a widget to control how another widget displays… I just don’t think my brain was ready to go that meta!) However I have found a ‘Restrict Widget’ widget, and it works! You can either set it to show on specific pages, or hide specific pages. The ‘show specific pages’ setting doesn’t work for me, but I’ve got it working on ‘hide specific pages’. (I’ve decided to have the image on a few other pages in addition to the homepage – but have turned it off where it clashes.)

    For the benefit of anyone reading this in the archives later – the widget I downloaded was: Restrict Widgets, Version 1.3.0, by dFactory.

    That’s useful to know about the difference between css and php, and what they can do – thank you. Now that I have even the most vague idea of what both of these are (so css controls how things display, and php is more overarching from what you’ve said) I am going to do a bit more research and try to figure some of this stuff out… This is a very steep learning curve!

    Many thanks for your fast response.

    Well you’re welcome,

    The plugin i was thinking about is:

    https://en.www.ads-software.com/plugins/display-widgets/

    After, nothing fancy on it. As for the rest, PHP/CSS/HTML is all well explained if some good friend/teacher/geek explains you in 3 minutes.
    Going deeper depends needs, or if you wanna make web/app your job :p

    Have fun with WP,

    Thread Starter tanyasq

    (@tanyasq)

    Thanks, I’ve just tried out your suggested plugin and I prefer it actually, as it’s easier to tick/untick boxes. I’ve uninstalled the one I had, to avoid any conflicts.

    Sounds like I will have to find a friendly geek to explain! I have someone in mind I can ask actually, although the poor guy has had a lot of questions from me recently!

    Definitely only want to go as deep as I need to, it’s already more complex than I’d anticipated! (I’m not naturally a tech person, but I wanted a website so it’s the need that’s driving me on.) I started using WordPress (just two weeks ago) as I thought I’d be able to achieve what I wanted without touching any code. However I’m finding that if I want things a very specific way, words like css and php just keep coming up!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I make an image widget appear on the homepage only?’ is closed to new replies.