Tagged: x
-
AuthorPosts
-
April 21, 2016 at 9:05 am #893670
MobilityParticipantHello–
I am using ethos and would like to add in some text underneath my header but above the actual blog post area. I tried to manipulate the _landmark-header.php for ethos using some span tags, but that didn’t work. Any ideas? Thank you!
April 21, 2016 at 9:06 am #893672
MobilityParticipantThis reply has been marked as private.April 21, 2016 at 10:02 pm #894685
FriechModeratorHi There,
Thanks for writing! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Then add the code below on your child theme’s functions.php file.
function custom_landmark() { if(is_home()): ?> <div class="custom-landmark"> <div class="x-container max width"> <p>SOME TEXT CONTENT HERE</p> </div> </div> <?php endif; } add_action('x_before_view_ethos__landmark-header','custom_landmark', 30);Replace the SOME TEXT CONTENT HERE with your actual content.
Then you can style that custom landmark with this class custom-landmark
Hope it helps, Cheers!
April 22, 2016 at 11:47 am #895608
MobilityParticipantThank you! Almost worked. Is there a way to have it fall under the Title, not above?
April 23, 2016 at 4:13 am #896462
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> JavaScript :
jQuery(".blog .custom-landmark").insertAfter(".blog header.x-header-landmark.x-container.max.width");Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-893670 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
