• Resolved wcroz99

    (@wcroz99)


    I have added a button to my sidebar to link to another area of my site. But for some reason, the first paragraph on the page has now become a link as well.

    To show you what I mean, the page where I am having the problem can be found here

    The new button that I have added is the one called ‘free tips and advice’. As you can see, the whole of the first paragraph links to the same page as the button does.

    Here’s the php code that I have used to display the new button

    <iframe src=”https://pastebin.com/embed_iframe.php?i=TU7SzRXe&#8221; style=”border:none;width:100%”></iframe>

    And here is the stylesheet code that I have used

    <iframe src=”https://pastebin.com/embed_iframe.php?i=ArgCpv5R&#8221; style=”border:none;width:100%”></iframe>

    I would be very grateful if someone could please tell me why this is happening?

    Thanks for your time

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter wcroz99

    (@wcroz99)

    Sorry, php code here and stylesheet here

    Thread Starter wcroz99

    (@wcroz99)

    Thanks alchymth but I have checked over that page and checked my code again but I still cant see what the problem is?

    Thread Starter wcroz99

    (@wcroz99)

    It seems that for some reason the first paragraph is conflicting with the sidebar but I cant see how

    you need to add a link text and close the html a tag;

    example:

    <div class="free_tips_advice">
                                    <img src="<?php echo get_bloginfo('template_directory');?>/images/FreeExpertTips&Advice.png" alt="Marshalls Registered Installer" width="218" /><a href="https://www.selandscapeconstruction.co.uk/free-expert-tips-and-advice/" title="Free Expert Tips & Advice">WHATEVERLINKTEXT</a>
    
                                </div>

    if you want to have the link on the image;
    example:

    <div class="free_tips_advice">
                                    <a href="https://www.selandscapeconstruction.co.uk/free-expert-tips-and-advice/" title="Free Expert Tips & Advice">
    <img src="<? echo get_bloginfo('template_directory');?>/images/FreeExpertTips&Advice.png" alt="Marshalls Registered Installer" width="218" /></a>
                                </div>
    Thread Starter wcroz99

    (@wcroz99)

    Thanks so much alchymyth that has worked!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebar linking issue – Please help!’ is closed to new replies.