Tagged: x
-
AuthorPosts
-
September 13, 2016 at 5:04 pm #1173894
blueprintParticipantHi support team,
I know there are a few threads on this subject, but I couldn’t figure it out and need your help.
What I’d like to achieve is placing the post title below featured image and fit it’s alignment into my text colums of the blog (see screenshot).
Can you please tell me how to do that?
*
Currently the blog post titles are removed with this code:.single .entry-title { display: none; }September 13, 2016 at 5:06 pm #1173895
blueprintParticipantHere is the screenshot…
September 13, 2016 at 5:07 pm #1173897
blueprintParticipantThis reply has been marked as private.September 13, 2016 at 7:55 pm #1174139
JadeModeratorHi there,
I have just checked your page but it seems to be set correctly now according to what you are aiming to do. Were you able to sort it on your own?
September 14, 2016 at 11:50 am #1175083
blueprintParticipantNo, I’m afraid not. This is a regular custom headline in a text Element. But this is how I want it to look like. Normally it would be ok, but the problem is that on my post grid and and index page, the title is shown twice – once as the blog title from the source and than the second time as the Excerpt (because this is how the post text begins). Thats why I thought it would be better to use the preset post titel.
It would be great, if there was a solution!
Thak you!!September 14, 2016 at 3:02 pm #1175366
Nabeel AModeratorHi again,
It seems like you’ve also disabled the featured image. You can remove the following code
.single .entry-featured { display: none; } .single .entry-title { display: none; }To display title after the featured image, you can add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript
(function($) { $('.single-post .entry-header').insertAfter('.single-post .entry-featured'); })(jQuery);Hope this helps!
September 15, 2016 at 5:34 am #1176379
blueprintParticipantThank you, now the title shows up under the custom headline!
#1 To fit the alignment to the post’s textblock I tried this:
.entry-title { text-align: left; }.single-post .entry-header{ padding-top: 2em; margin-left: 7%; }The problem is, that on different screen sizes the left margin changes accordingly. Can you give me a code that aligns the title with the post text on all screen sizes?
#2 I tried removing the space between featured image and nav bar with this code, but it had no effect:
.single-post .x-flexslider { display: none; }Can you tell why?
Thanx again!!
September 15, 2016 at 9:41 am #1176705
LelyModeratorHi There,
#1. Please also add this:
.single-post .entry-header .entry-title { width: 100% !important; padding: 0 10%; } @media (max-width: 767px){ .single-post .entry-header .entry-title { padding: 0; } }#2
.single-post.x-post-meta-disabled .post .entry-featured { margin-top: 0; } .single .hentry .entry-wrap { padding-top: 0; }Hope this helps.
September 15, 2016 at 5:12 pm #1177294
blueprintParticipantThanks a lot! So far the code works. There is just still an alignment change on smaller screen sizes (see scrennshot).
And I noticed that, although the title is responsive, it still overflows the column on the right side on small screensice 320-480px (see scrennshot). Can you tell me how to fix this?
Thank you!!!
September 15, 2016 at 11:01 pm #1177690
LelyModeratorHi There,
Please update this part:
@media (max-width: 767px){ .single-post .entry-header .entry-title { padding: 0; } }To this:
@media (max-width: 767px){ .single-post .entry-header .entry-title { padding: 0; width: 88% !important; } }Hope this helps.
September 17, 2016 at 12:15 pm #1179481
blueprintParticipantThank you, but no – it did not help. It makes the title go even further to the left…
Is there another way?
September 17, 2016 at 4:54 pm #1179630
blueprintParticipantAnd can you please tell me how to achieve the same for custom post type?
Thank you!!
September 17, 2016 at 10:12 pm #1179827
Rue NelModeratorHello There,
Do you want some thing like this?
http://prntscr.com/cjafp1
http://prntscr.com/cjaftuYou need to update the given css and make use of this code instead:
.single-post .entry-header { padding-top: 2em; margin: 0 auto; padding-left: 10%; padding-right: 10%; } .single-post .entry-header .entry-title { width: 88% !important; padding: 0; max-width: 1200px; } @media(max-width: 979px){ .single-post .entry-header { padding-left: 0; padding-right: 0; } }This could would also apply to custom post types.
Please let us know if this works out for you.
September 18, 2016 at 5:27 am #1180048
blueprintParticipantExcellent! Thank you so much!
I adjusted the code in order to fix the alignment for all screen sizes, and added a font-size so that the heading would still be bigger than text on small sizes. Is that correct, or is there a more elegant way?@media(max-width: <strong>770px</strong>){ .single-post .entry-header { padding-left: 0; padding-right: 0; <strong>font-size: 130%</strong>; } }😀
September 18, 2016 at 5:29 am #1180050
blueprintParticipantUps – my text decoration messed up the code. Here it is again:
@media(max-width: 770px){ .single-post .entry-header { padding-left: 0; padding-right: 0; font-size: 130%; } } -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1173894 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
