• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Eric Emanuel

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 30, 2015 at 10:53 pm in reply to: Converting HTML to shortcode #175256
    Eric Emanuel
    Member

    Ok, it took some time but I was able to find a solution by myself. The main problems were:

    1. There's a great number of variables in this code
    2. Some of them use "double-quotes" and others use 'single-quotes', so you have to carefully organize interchange these two. It's very, very easy to make mistakes here.
    3. I have no idea why, but using 'videoURL' as a variable didn't work, I had to change it to 'videolink' in this case. I guess it's a conflict, but I'm not sure about that.

    The strategy that saved me was looking into the font-code generated by the browser. The point of the shortcode is to generate exactly the same HTML code as above if there's no user input, so I only had to look at the generated code, compare with my original code and fix the problems. Patience is important here.

    The result is: I can now create divs with video background and text over it only writing this in any page:

    [video]
    [videoitem videolink="https://www.youtube.com/watch?v=fdJc1_IBKJA" title="This is a Title" subtitle="This is a subtitle"][/videoitem]
    [/video]

    For the curious, this is the CSS I'm using:

    .video-section .pattern-overlay {
    	background-color: rgba(71, 71, 71, 0.59);
    	padding: 110px 0 32px;
    	min-height: 496px; 
    	/* Incase of overlay problems just increase the min-height*/
    }
    
    .video-section h1, .video-section h4{
    	text-align:center;
    	color:#fff;
    }
    
    .video-section h1{
    	font-size:110px;
    	text-transform: uppercase;
    	margin: 40px auto 0px;
    	text-shadow: 1px 1px 1px #000;
    	-webkit-text-shadow: 1px 1px 1px #000;
    	-moz-text-shadow: 1px 1px 1px #000;
    }
    
    .video-section h4{
    	font-size: 25px;
    	margin: 0px auto 15px;
    }
    
    .video-section .buttonBar{
    	display: none;
    }
    
    .player {
    	font-size: 1px;
    }

    Awesome! =D

    December 28, 2015 at 11:14 pm in reply to: Problems with Genesis + Javascript #175028
    Eric Emanuel
    Member

    I will, thanks again!

    December 28, 2015 at 11:02 pm in reply to: Problems with Genesis + Javascript #175025
    Eric Emanuel
    Member

    Worked like a charm! Thank you, my friend, you're the best!
    Your bonus section is also very helpful, I'll study and use this knowledge from now on! =D

    Do you mind if I contact you if I have any more of these newbie questions?

    Thank you very much!

    December 28, 2015 at 10:46 pm in reply to: Problems with Genesis + Javascript #175023
    Eric Emanuel
    Member

    Wow, you've created a whole class just for me? Amazing!
    Thanks a lot, I'll implement it and let you know about the results =)

    December 28, 2015 at 10:04 pm in reply to: Problems with Genesis + Javascript #175014
    Eric Emanuel
    Member

    Thanks for your attention, Jamie, I really appreciate it =)

    December 28, 2015 at 9:36 pm in reply to: Problems with Genesis + Javascript #175003
    Eric Emanuel
    Member

    Yes, that's exactly what I want!
    I've been struggling with this for hours now, it can't be that hard...

    December 28, 2015 at 9:14 pm in reply to: Problems with Genesis + Javascript #174998
    Eric Emanuel
    Member

    I've changed my code to yours, but no success yet... I click on the headers and nothing happens.
    Do you have another idea of what could be wrong?

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble