badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Showing Featured image in Pages?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8255
    frankybee
    Participant

    Hi! Thank you for this nice theme!

    I would like to show the featured images in the Pages but i’m having some problems with the files/fonctions structure for my child theme.

    – I created a child theme folder (CSS works fine).
    – first, i thought i would have to edit “content-rightsidebar.php” as it’s the template i want to have the featured image..
    – i then got to “library/structure/content-extensions .php” to add the Thumbnail Fonction.

    It works fine if i add the code to the Attitude original file, but it doesn’t work if i add it the the same file, copied in my child folder, with the same path. (library/structure/..)

    Do i have to modify or copy other files in my child folder to get it to work well?

    Thanks in advance!

    #8327
    Sanjip Shah
    Participant

    @fankybee Which is the function that you want to edit. If it is this function attitude_theloop_for_page. Then just copy this function in the functions.php file of your child theme and make the necessary changes there.

    function attitude_theloop_for_page() {
    // Copy all the inside code and make you changes here. 
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.