Home Forums Square Featured Section – image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #727
    zafon
    Participant

    Hi,
    I have a problem, Can i put image in Featured Section – is it possible?
    secund question – if i want add button (graphic not marker “more”) Featured Section – is it possible?
    Ty for help – sorry for language

    Nice work Hashthemes!

    #729
    Hash
    Keymaster

    Sorry both are not possible without customization.

    We can customize the theme to add image and read more button for the paid customization if you want.

    #734
    zafon
    Participant

    I’m appriciate your work, unfortunetly i don’t have money to paid for customization (I’m just a beginner 🙂 )

    i have a question – files responsible for change featured section is front-page.php, functions.php and customizer.php (if want change editor panel)

    front-page.php

    	$square_featured_page_id = get_theme_mod('square_featured_page'.$i, $square_page );
    	$square_featured_page_icon = get_theme_mod('square_featured_page_icon'.$i, 'fa-bell');

    and i must write
    $square_featured_page_image = get_theme_mod('square_featured_image'.$i, $square_page );

    and add code into functions.php

    	add_theme_support( 'post-thumbnails');
    
    	add_image_size( 'square-about-thumb', 400, 420, true );
    	add_image_size( 'square-blog-thumb', 800, 420, true );

    Now it shows feature image, but it’s not large enough to fill the cover (div.sq-featured-post.sq-featured-post1)

    Sorry for trouble and have nice a day.

    #736
    Hash
    Keymaster

    I don’t think it will still show the featured image.

    The code $square_featured_page_image = get_theme_mod(‘square_featured_image’.$i, $square_page ); does not print out the image.

    The featured image of the page can be displayed by using the code the_post_thumbnail();

    the_post_thumbnail()


    You don’t need to add code in the customzer.php file.

    And to convert the plus sign in to graphic button, you need to add the text “Read More” instead of plus sign and then add the css to convert it in to button.

    I hope this will help you.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.