• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Pretty Photo in the Portfolio – the video size is too small for mobile version

Home › Community Forums › Epik Theme Support › Pretty Photo in the Portfolio – the video size is too small for mobile version

Tagged: portfolio, pretty photo

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Eric.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 24, 2014 at 8:19 am #10178
    mashastudio
    Customer

    Hey there.

    I am using the Pretty photo Portfolio page to show the video gallery of the blog. Using a custom field I put the Youtube link in the Pretty Photo box. The problem is that on mobile screen the size of pretty photo is too small, and I cannot figure out how to change it in the code. Here is the code I use:

     add_action( 'genesis_entry_header', 'epik_prettyPhoto_image' );
    function epik_prettyPhoto_image() {
        $yout = get_field ( 'youtube_url' );
        $img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
        printf( '<a href="%s" rel="prettyPhoto[gallery1]" title="%s">%s</a>', $yout, the_title_attribute('echo=0'), $img );
    } 

    Thank you!

    January 24, 2014 at 9:41 pm #10184
    Eric
    Customer

    That’s going to be tough to figure out. I’ve had issues with prettyPhoto in the past doing something similar. I ended up just not using it since I could never get it to look right in mobile view. I noticed that Wes is slowly fading it out of his themes since it doesn’t work as elegantly when it comes to mobile. It could just be a prettyPhoto issue itself rather than the theme, since I’ve used it on another theme and had the exact same issue.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework