• Resolved Pcosta88

    (@pcosta88)


    Hello,

    I am working on a site for a client. I have links in my H1 title that are directing users to a different page. I’d like not to have any links at all in the h1 titles. Also, on some pages the entire content is hyperlinked. Everything is going to one page. Suggestions on how to fix?

    WordPress: Up to date
    Theme: Mastro
    Site: Restoreursmile.com
    Example: https://restoreursmile.com/lake-forest-location/
    Plugins: https://pasteboard.co/1Lhr7ydf.png

    It is not a caching issue. Permalinks are set to day and name.

    Site includes custom CSS. I do not think it is an issue. Posted anyways:

    /* Enter Your Custom CSS Here */
    
    /*Makes background wite */
    html, body, div {
        background: white;
    }
    
    /* Header */
    
    div.headerImage {
        margin: 25px 0px;
        clear: both;
        padding-left: 250px;
    }
    
    /*Removes div container borders in header and footer */
    
    #footer .container {
        padding: none;
        border-top: none;
    }
    
    #header .container {
        position: relative;
        border-bottom: none;
        margin-bottom: none;
    }
    
    /* Sidebar Widget */
    
    #sidebar {
        float: left;
        width: 29%;
        z-index: 3;
        background-color: #FFF;
        Margin-left: 35px;
    }
    .widgetTitle {
        padding-bottom: 15px;
        border-bottom: none;
        margin-bottom: 25px;
        position: relative;
    }
    
    #sidebar {
        float: left;
        width: 29%;
        z-index: 3;
        background-color: #FFF;
        margin-left: 35px;
        padding-bottom: 6px
    }
    
    /* Removes meta data icon */
    .entryMeta {
      display: none
    }
    
    /*Contact Page CSS */
    
    div.entryContent {
        padding-bottom: 0px;
    }
    
    form.wpcf7-form p {
    margin: 0px 0px 23px;
    }
    
    /*Adjust Coupon Height  */
    .cctor_coupon_image {
        padding: 1%;
        border: 3px dashed #000;
        max-width: 100%;
        height: 200px !important;
    }
    
    /*Adjusts title for sidebar widget */
    .widgetTitle {
        padding-bottom: 15px;
        border-bottom: medium none;
        margin-bottom: 25px;
        position: relative;
        text-align: center;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • Did you try removing your custom CSS and testing? Is this a new site that has always malfunctioned like this or did something change? Did you try disabling plugins? Does the problem occur on every theme?

    Check the code for your “Whittier” widget, specifically the img tag.

    Thread Starter Pcosta88

    (@pcosta88)

    I’ve checked the CSS. That is not it. The code for the Whitter Widget is

    <p align="center"> <a href="https://restoreursmile.com/locations-2">
    <img src="https://restoreursmile.com/wp-content/uploads/2015/07/Whittier-Location.jpg" height="300px" width="300px"  </a> </p>

    I tried changing the p tags and the height and width pxs in the customizer. The link is still there.

    Thread Starter Pcosta88

    (@pcosta88)

    > added

    You need to close your img tag:

    <p align="center"> <a href="https://restoreursmile.com/locations-2">
    <img src="https://restoreursmile.com/wp-content/uploads/2015/07/Whittier-Location.jpg" height="300px" width="300px" /></a> </p>

    Pcosta88, did you figure out a solution? It looks like the page you linked to with problems earlier is working better now; all the words on the page are not hyperlinked.

    Thread Starter Pcosta88

    (@pcosta88)

    I did! Thanks so much!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘H1 Titles are linked to wrong pages’ is closed to new replies.