Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can't find post title Genesis shortcode – alternative?
Tagged: .post-info, entry-title, featured image
- This topic has 9 replies, 4 voices, and was last updated 8 years, 3 months ago by dominikareis.
-
AuthorPosts
-
August 22, 2016 at 4:21 pm #191838dominikareisMember
Hello,
The blog is dominika.co and the problem can be seen here: http://dominika.co/2016/03/asos-shopping/
I have added a widget area below menu that has a featured image as the background. I am trying to do the trick and I want to remove the post date and title appearing BELOW the image and place post date and title ON THE background instead.
What I did:
I added post-date shortcode into the widget area so the post date now displays on the background, in the widget area as I wanted however I cannot find the shortcode for post title therefore I am unable to add it as a textwidget with shortcode on this background.Any idea what alternative I could use for post title shortcode?
Any help much appreciated
August 23, 2016 at 5:19 am #191868itzsniderParticipantNot sure if this is the best coding advice BUT you can always do the below
.features-widgetarea {
padding: 2%;
float: right;
border-radius: 12px;
background-color: #fff;
color: #333;
font-size: 10px;
display: none;
}Just do a display none and that little widget box goes away.
August 23, 2016 at 5:19 am #191869Victor FontModeratorGenesis doesn't have a shortcode for displaying a post title. You need to use the WordPress function: https://developer.wordpress.org/reference/functions/get_the_title/
Why wouldn't you just use the featured post widget and display only the title and post data? It would be a lot easier.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 23, 2016 at 7:28 am #191888Brad DaltonParticipantAugust 23, 2016 at 2:37 pm #191921dominikareisMemberhello Victor, thank you for taking time to answer but I do not want to display Featured Post above post content. I want to display full width featured image that has post title and post date on the top of it.
August 23, 2016 at 2:38 pm #191922dominikareisMemberthanks for taking time to respond but I do not want to get rid of the widgdet
August 24, 2016 at 7:51 am #191942Victor FontModeratorAs an FYI, the featured post widget has a setting to display no content, just the title and entry meta which is what you want. I don't know why you want to reinvent the wheel.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 5, 2016 at 8:41 am #192628dominikareisMemberThis is not what I was trying to achieve Victor. I wanted the action to appear on single post page. I wanted Featured image of the post currently open to appear full width above content with post date and title ON IT.
September 5, 2016 at 8:51 am #192630Brad DaltonParticipantThere's a fair amount of work involved in doing that. I spent several hours working out these 2 solutions.
September 5, 2016 at 12:35 pm #192648dominikareisMemberI solved it now, and the result of what I was trying to achieve can be seen here: http://www.missblogger.co/pamela/2016/09/05/quisque-nec-ante-velit/
Thanks to everyone who wanted to help
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.