• Resolved kapaionutz

    (@kapaionutz)


    Hello!
    Im creating a school project and im stuck at creating a link.
    When i insert the link, the first H3 element is showing back as a paragraph.
    The h3 element shows fine until I insert the link.
    There are two other elements identical with the first one where the code works perfect

    Here is the full page code:

    [metaslider id=78]
    <p><strong>Lorem ipsum dolor sit amet, magna fabulas accusata in vix, sit alienum laboramus cu. An causae vocibus torquatos eam. No dignissim euripidis laboramus his, in mel simul accusata reformidans,</strong> id impedit invidunt eam. Commune accommodare mediocritatem ei vix, ea maluisset mediocritatem vix, per ut tollit graecis invidunt.
    <br>
    Duo ea falli altera salutatus. Regione facilisi nam in, malorum vocibus detraxit mea id, vel ne graece aliquid facilisi. Iisque facilisi nam ne.</p>
    <br>
    
    <hr>
    
    <div class="col-md-4">\
    
    <!--//THIS IS THE DIV THAT IS KILLING MY NERVS-->
    
    <a href="http://ceeste.net/category/sanatatebiologie"><h3 class="titluCategorie">Sanatate si Biologie</h3>
    <img class="roundImage" src="http://ceeste.net/wp-content/uploads/2016/04/biologie.png"></a>
    <p class="paragrafCategorie">Afla cele mai importante informatii din domeniul sanatatii si al biologiei</p>
    
    </div>
    
    <div class="col-md-4">
    <a href="http://ceeste.net/category/gadgeturitehnologie/"><h3 class="titluCategorie">Gadgeturi si Tehnologie</h3>
    <img class="roundImage" src="http://ceeste.net/wp-content/uploads/2016/04/gadget-300x254.jpg"></a>
    <p class="paragrafCategorie">Este de-a dreptul uimitor cat de interesante sunt gadgeturile din ziua de azi</p>
    
    </div>
    
    <div class="col-md-4">
    <a href ="http://ceeste.net/category/stiinta/"><h3 class="titluCategorie">Stiinta</h3>
    <img class= "roundImage" src="http://ceeste.net/wp-content/uploads/2016/04/Stiinta.png"></a>
    <p class="paragrafCategorie">Afla lucruri interesante despre Fizica, Chimie, Univers si multe altele</p>
    
    </div>

    Does anyone knows how can i insert the link and make the h3 show normaly?
    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you tried wrapping the h3 around the link?
    E.g.:

    <h3><a></a></h3>

    Thread Starter kapaionutz

    (@kapaionutz)

    Have you tried wrapping the h3 around the link?

    Yes, i tried that many times.
    I also tried to change the h3s class font-size, but it doesnt work, it changes the font-size only on the second and third h3 element.

    The strange thing is that it takes the center alignment from the h3`s class:

    /*This is the h3

    s CSS*/
    .titluCategorie {
    text-align: center !important;
    font-size: 28px !important;
    }`

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter kapaionutz

    (@kapaionutz)

    Try this plugin: https://wordpress.org/plugins/dont-muck-my-markup/

    No sucess…
    Only the aligment works, if i set h3 color it also dosen`t change the first element..
    This is why I think that this is a theme-related issue…
    the theme name is Zerif Lite

    Hi,

    From the code you posted, you’re missing the open H3 tag on all of your headings. First thing I’d do is run your page through the HTML validator:
    https://validator.w3.org/

    That will show you any errors in your code.

    For the CSS, where are you adding the new styles? In style.css? At the bottom of the file? At the top? Browsers read top to bottom, so whatever’s at the bottom takes precedence over what’s on the top. If your theme has a custom CSS option, put your new styles in there to overwrite the theme’s styles.

    You can also try ‘inspect element’ or Firebug in your browser to see what styles are affecting your code to see what’s happening there.

    Thread Starter kapaionutz

    (@kapaionutz)

    Thank you two for helping me.
    I managed to solve the problem by simply adding a class to the a element and customize that class.
    I tried lots of different thing but none of them helped me, not even the HTML validator, but i never thought to add a class to the href element.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to create a link on a H3’ is closed to new replies.