Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #114532
    stefyc
    Participant

    Hi there, I am trying to customize Featured Slider by removing hyperlinks from the featured image as well as the page title.

    I did the following but it didn’t seem to fix it, please help.

    Editor > featured-slider.php > function clean_education_post_page_category_slider()

    <figure class=”slider-image”>
    ‘. $image .’
    </figure><!– .slider-image –>

    <h2 class=”entry-title”>
    ‘.the_title( ‘<span>’,'</span>’, false ).’
    </h2>

    Fairly new to this and I was only editing the theme itself didn’t create a child theme… hope that’s okay for small change like this… 🙂

    Thank you!

    stefyc

    #114534
    stefyc
    Participant

    Formatting messed up even with CODE tags… essentially I changed

    href="' . esc_url( get_permalink() ) . '"

    to

    href="#"

    #114542
    Mahesh
    Participant

    @stefyc: For customization (change of codes) it is highly recommended to use child theme. It is because you’ll lose all your customization and coding on theme update. You can find more details on creating child theme HERE.

    Please post in your site url.

    Regards,
    Mahesh

    #114568
    stefyc
    Participant

    Hi Mahesh,

    Thank you for the prompt response. Okay I can create the child theme, but was the suggested code change correct? Why didn’t it take effect?

    Site here (just proof of concept now…)

    Thanks!

    stefyc

    #114593
    Mahesh
    Participant

    @stefyc: You can simply do this with custom CSS. Go to Dashboard=> Appearance=> Customize=> Additional CSS box and add the following CSS:

    #slider-section .slider-image > a, 
    #slider-section .entry-header .entry-title > a {
        pointer-events: none;
    }

    Regards,
    Mahesh

    #114947
    stefyc
    Participant

    That works beautifully, thank you Mahesh! 🙂

    #114998
    Mahesh
    Participant

    @stefyc: Thank you for your appreciation. If you like my support and Clean Education theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/clean-education?rate=5#postform
    Have a nice day!

    Regards,
    Mahesh

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Customize Featured Slider: remove hyperlinks from image and page title’ is closed to new replies.