Tagged: x
-
AuthorPosts
-
February 14, 2017 at 4:27 am #1370237
henrybagParticipantHi
I am trying to set up a single-event.php file to display events created by the Event Manager plug-in.
I’ve got the single event page showing correctly but wondered if you could help me with the following 2 issues.
Issue 1
Is it possible to set up an new landmark header with say ‘Events’ as the title, it currently defaults to ‘news’ which is the term I’m using for the blog.
Issue 2
I’m wanting the content to display full width, I’ve copied the code from the TEMPLATE-LAYOUT-FULL-WIDTH.PHP file but it is still showing as 2 columns.
I’m using the renew stack and a child theme.
An example event is http://screconomy.org.uk/q1-qes-breakfast/
Thanks in advance
Henry
February 14, 2017 at 4:43 am #1370263
Paul RModeratorHi Henry,
Thanks for writing in! Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.
Thank you for your understanding.
February 14, 2017 at 5:07 am #1370286
henrybagParticipantOK thanks, are you at least able to help me understand the theme structure so that I can get this sorted.
If I have a single-event.php which calls in the content as follows which theme file is that calling?
<?php while ( have_posts() ) : the_post(); ?>
<?php x_get_view( ‘renew’, ‘content’, get_post_format() ); ?>
<?php endwhile; ?>Thanks
Henry
February 14, 2017 at 5:22 am #1370303
LelyModeratorHi Henry,
That means on renew stack file here: \wp-content\themes\x\framework\views\renew\. It depends on what post format else just content.php. See attached screenshot.
February 14, 2017 at 6:03 am #1370338
henrybagParticipantOK thanks I have sorted that.
Sorry can you point me in the right direction to changing the landmark header for that page now?
I have duplicated the _landmark_header.php file to the child theme and have been looking at this thread https://community.theme.co/forums/topic/landmark-on-new-custom-page-template/ to change the header title.
I am unsure if this is the right code for my needs as it causes and error but I may have pasted it in the wrong place.
<?php elseif ( is_page_template( 'template-blank-1.php' ) ) : ?> <header class="x-header-landmark x-container max width"> <?php if ( $disable_page_title != 'on' ) : ?> <h1 class="h-landmark"><span>Events</span></h1> <?php endif; ?> </header>Thanks
HenryFebruary 14, 2017 at 6:23 am #1370353
LelyModeratorHello Henry,
That is not the right code.
From the original landmark header file look for this code:<?php elseif ( is_home() || is_single() ) : ?> <?php if ( x_is_portfolio_item() ) : ?> <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1> <?php else : ?> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1> <?php endif; ?>That is line 43 to 52.
Update that part to this:<?php elseif ( is_home() || is_single() ) : ?> <?php if ( x_is_portfolio_item() ) : ?> <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1> <?php elseif ( is_single('event') ) : ?> <h1 class="h-landmark"><span>Events</span></h1> <?php else : ?> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1> <?php endif; ?>Hope this helps.
February 14, 2017 at 8:03 am #1370443
henrybagParticipantHave tried that but it didn’t work
So in the route of the child theme I have
single-event.php which calls the template-blank-1.php from the views/renew directory.
February 14, 2017 at 9:56 am #1370577
LelyModeratorHi There,
From that code, can you try updating
is_single('event')tois_singular('event'). If that doesn’t work, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
February 14, 2017 at 10:16 am #1370605
henrybagParticipantThat worked a treat.
Thanks for your help
Henry
February 14, 2017 at 10:47 am #1370665
JoaoModeratorGlad to hear it,
cheers
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1370237 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
