• Hi,

    I installed the theme, and I like it!
    There is one problem concering the mobile version: you cannot click on the featured images in the blog overview to open the post. Any ideas how to fix this?

    Thanks
    Daniel

    The website is https://www.daniel-eder.de

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll need to edit the theme’s code, namely the functions.php file, function divina_post_thumbnail(), as described here, but you’ll also have to make some changes in the css file for this to work.

    clmerle

    (@clmerle)

    I also ran into the same problem. I created a child theme and I added the filter code to functions.php as you suggested and it shows up in the raw HTML but I still cannot click on the picture. If I remove the class figcaption, it will work but then the slide out text is below the image. I created a new class called divina-mobile and added it to the permalink so I could style it. Below the function is as far as I got with CSS. Any suggestions would be appreciated.

    add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
    
    function my_post_image_html( $html, $post_id, $post_image_id ) {
    	$html = '<a class="divina-mobile" href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_the_title( $post_id ) ) . '">' . $html . '</a>';
    	return $html;
    }
    .divina-mobile {
        display: block;
        height: 100%;
        width: 100%;
    }
    .divina-mobile:hover {
        border: solid white 1px;
    }

    Update: I just realized that links cannot be nested and that’s why it’s not working. Can you suggest a solution that avoids this problem?

    valentinagu05

    (@valentinagu05)

    Any solution for this problem ?

    When I’m in a Mobile version I can’t link to the entry .

    Can someone help me? Thanks

    clmerle

    (@clmerle)

    That filter function I posted did not work. I did compare it to another commercial theme that does work on mobile and was able to figure out how it worked and used it to modify Divina. The grid based theme is called Origin and is from Elegant Themes. If you use Firebug you can inspect how it works.

    https://www.elegantthemes.com/demo/?theme=Origin

    I’ll try to do a write up later, sorry that I don’t have more time to post my solution.

    I am eager to see the solution to this as well. I am not fluent in php so I am having trouble with finding and resolving the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mobile Version’ is closed to new replies.