Forum Replies Created
-
AuthorPosts
-
theimageworksParticipant
Just for yours/anyone else’s reference here is a screenshot of the finished result:
https://www.uploady.com/#!/download/YKAQqIKC8hV/7BV_isXiDXFknvCL
theimageworksParticipantI chose to only display the ‘city’ within the widget but this was too close to the date so needed spacing out. I just used this CSS
div.tribe-events-event-details {
margin-top: 5px;
}Other CSS changes I made was to the font size & colour to fit the style of other elements in the website footer.
Hope this helps!
theimageworksParticipantYou sir are awesome!
That worked great, just a couple of css tweaks but other than that it’s spot on. Thank you again.
theimageworksParticipantSorry my bad, I was being stupid.
I was using the ‘events calender’ widget and had removed the actual calender. Obviously this only shows this months events until you click the arrow to show next months. With it being removed I could not see this.
I’ve swapped it out for the ‘events list’ widget and will simply style this to match the other one.
Apologies and thanks for you help.
theimageworksParticipantAwesome, I’ve resolved this now. Thank you for your help!
theimageworksParticipantThat’s spot on, thanks for your help.
I had searched on Google etc but never game across that page. Sorry! :/
theimageworksParticipantOh sorry and the code i have to set the featured image is as follows:
wp_enqueue_script( ‘sk-backstretch’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/jquery.backstretch.min.js’, array( ‘jquery’ ), ‘1.0.0’ );
wp_enqueue_script( ‘sk-backstretch-set’, get_bloginfo(‘stylesheet_directory’).’/js/backstretch-set.js’ , array( ‘jquery’, ‘sk-backstretch’ ), ‘1.0.0’ );wp_localize_script( ‘sk-backstretch-set’, ‘BackStretchImg’, array( ‘src’ => str_replace( ‘http:’, ”, genesis_get_image( array(‘format’ => ‘url’) ) ) ) );
theimageworksParticipantIt’s just a theme that is part of the Genesis Framework so nothing too fancy. The only thing different is that I can set featured images on pages as well as posts.
I have the following code to move the page title over the featured image:
if ( tribe_is_event() ) {
echo ‘<div class=”entry-header-wrapper”><div class=”wrap”><div id=”title-desc”>’;
genesis_do_post_title();
echo ‘<p>We hope to see you there!</p>’;
echo ‘</div></div></div>’;remove_action( ‘genesis_entry_header’, ‘genesis_entry_header_markup_open’, 5 );
remove_action( ‘genesis_entry_header’, ‘genesis_do_post_title’ );
remove_action( ‘genesis_entry_header’, ‘genesis_entry_header_markup_close’, 15 );If the events page had its own physical page it would be a piece of cake but unfortunately is doesn’t.
So from what you’re saying I guess I need to add something along the lines of:
if( tribe_is_month() ) {
set the page featured image to xxxc.jpg
}theimageworksParticipantThis reply is private.
-
AuthorPosts