• Resolved skirkster

    (@skirkster)


    Hello all!

    I’m trying to create links using images in my text widgets, but I’m having trouble figuring out how to reduce the border around it to be flush with the outside of the image itself. As of now, there’s padding, even though it’s set to 0.

    Also, is there a way to set a link to bring up relevant search results? For example, clicking on a link would bring up all posts tagged with a certain word. I don’t know if that would need PHP or what.

    Any help would be greatly appreciated, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • With regard to your image link problem, a link to your site showing the problem would be helpful.

    To create a link for search results, run the search yourself and then copy url of the search results page (it will be in your browser address bar when you get to the results page). You can then use this address like any other link.

    Thread Starter skirkster

    (@skirkster)

    Thanks for the info; the link is https://www.noelmarie.com and the image I’m talking about is the first one in the left-hand sidebar.

    Try adding the following to the bottom of style.css:

    .sidebar1 .BlockContent-body {margin:0;}
    .sidebar1 .BlockContent-body .textwidget p {margin:0;padding:0;}
    Thread Starter skirkster

    (@skirkster)

    That worked perfectly! Thanks.

    One more question while I’ve got your attention, to make that border visible all the way around, is that just an overflow code?

    Again, thank you so much.

    Not necessarily. It’s going to depend on where the particular element is within the page source and what other styles it might inherit.

    nickb67

    (@nickb67)

    esmi, i have a similar issue, and wondered if you might be able to advise me
    https://st-margarets-school.org/
    i’m completely new to WordPress – so any help would be grateful.
    as you can see i have three buttons on the right hand sidebar, and the padding is too much, i’d like to reduce this if possible

    many thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebar text widget padding and search capability’ is closed to new replies.