• Resolved blogwendable

    (@blogwendable)


    Hi,

    When I try to add hyperlink to my featured image I can not, it only gives an option to choose the featured image.

    How can I hyperlink my posts featured image instead of sending automatically straight to the post,

    The idea is that I want to direct my customers to a hyperlink through the photo straight from the main page. Or let them enter the post whilst clicking on post title.

    Thanks,

    Wendable.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    You have to do the changes in code below I have given the code you have to replace in the content.php file line no 22,51,75.

    
    <a>"><?php the_post_thumbnail(); ?></a>
    

    Thanks.

    • This reply was modified 5 years, 2 months ago by Marius L. J..
    • This reply was modified 5 years, 2 months ago by Marius L. J.. Reason: Code formating
    Thread Starter blogwendable

    (@blogwendable)

    I thank you for the response and sorry I didn’t respond on time. I was thinking I would get a notification in my box when I get a response from you.

    However, the code you gave me didn’t work on line 22. Here is the message I got:

    “Your PHP code changes were rolled back due to an error on line 22 of file wp-content/themes/vw-travel/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘<‘”

    I used it on the other lines you mentioned, like line 51 and 75. Though I cleared everything I saw in those line. But it was complaining it on line 22. Please kindly help me out.

    Again, I would like to remove the copyright text on my site https://www.wendable.com.

    On my site I have this (Copyright 2020 – Travel WordPress Theme) but I would like to replace it with Wendable Inc.

    Kindly let me know how to go about these.

    Regards

    Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    We have changed the code please try the below one.

    <a>"><?php the_post_thumbnail(); ?></a>

    Suggestion: Do not add the above code directly in the main travel theme as if the theme gets updated your code also gets deleted, so please make a child theme and do the changes.
    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    For copyright

    First, you have to add the below CSS code in additional CSS

    .copyright a {
    display: none;
    }

    Then go to Customizing ? VW Settings ? Footer Settings ? Copyright Text >> here you can add “Wendable Inc.” ? publish it.

    Thanks.

    Thread Starter blogwendable

    (@blogwendable)

    Thank you Jan,

    The copyright has been resolved. I appreciate that. But I have not been able to create the hyperlink for the featured image, because I don’t know how to go about the child theme yet until I read it.

    I will let you know as soon as it is resolved. Thanks for your support.

    Regards

    Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    Go to below link >> Featured Image Link >> Here you can get the complete code of hyperlink.

    https://www.vwthemesdemo.com/docs/free-vw-travel/#section-13

    Thanks.

    Thread Starter blogwendable

    (@blogwendable)

    Hello,

    Please I just observed that this is showing on the pages I created on my site: (** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other ‘pages’ on your WordPress site will use a * different template. * * @package VW Travel */ get_header(); ?>).

    Please how can I remove them on all of the pages that I have.

    Also, I created a copyright at the footer of my site, but I can still see this (Wendable Inc. Travel WordPress Theme).I would like to remove the “Travel WordPress Theme”. So that there would not be a confusion in the copyright of the site.

    Thanks.

    Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    You have added incomplete get_header code, below I have given the code please use that code.

    ” <?php get_header(); ?> ”

    For copyright Travel, WordPress Theme, use the below CSS code and paste in additional CSS.

    .copyright a {
    display: none;
    }

    Thanks.

    Thread Starter blogwendable

    (@blogwendable)

    Hello,

    When I tried to use the code you gave me through the link you sent for the Featured Image Link code (“><?php the_post_thumbnail(); ?>). It generated an error in line 22. The error is written below:

    Your PHP code changes were rolled back due to an error on line 22 of file wp-content/themes/vw-travel/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘<‘.

    I await your reply to this message.

    Thanks

    Thread Starter blogwendable

    (@blogwendable)

    Thank you for the response,

    I have added the get_header code and the long (** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other ‘pages’ on your WordPress site will use a * different template. * * @package VW Travel */ get_header(); ?>) has vanished, thank you. But I am still seeing (?>) on the top of my page. Is there any way I can remove this.

    Please don’t forget to help me with the line 22 of the Featured Image Link I talked about.

    Thank you for your support. I await your response.

    Thread Starter blogwendable

    (@blogwendable)

    Thank you for your support at all times.

    I have been having issues with my appearance on Google for more than a month now as my urls are not showing up on Google, even though they are said to be indexed.
    Today I received a message from Google search console indicating some errors on my page. These errors are stated below:

    Error Text too small to read

    Error Clickable elements too close together

    Error Viewport not set.

    Can you please tell me how to fix these one after the other.

    Thank you as I look forward to your reply soonest.

    Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    Could you please send us a screenshot of a file in which you are doing code.

    Thanks.

    Thread Starter blogwendable

    (@blogwendable)

    Hello,

    There is no way I can add/send a screenshot here. No way to attach a file. But where I am trying to add the Featured Image Link code is at the Theme Editor (under Theme Header).

    Please help me with the code and where to put it (Is it Additional CSS or somewhere else) I can change the:

    ( Font size) Text too small to read

    (Line height) Clickable elements too close together

    And how to solve the Viewport not set error.

    Thanks.

    Theme Author VW THEMES

    (@vowelweb)

    Hello @blogwendable,

    follow the below step to add featured images under the theme header.

    Go to Dasboard >> pages >> Add new page >> click on top left plus icon and search image >> click on image icon >> Upload your image >> publish it.

    For font-size you can go to dashboard >> Appearance >> Customize >> Typography >> here you can change font-size >> publish it.

    For line-height add the below CSS code in additional CSS

    .more-btn {
        margin: 46px 0 15px;
    }

    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to add hyperlink to post’s featured image?’ is closed to new replies.