Tagged: x
-
AuthorPosts
-
June 20, 2016 at 7:14 am #1050475
SixTsevNParticipantHey there,
I’ve downloaded the X Child Theme, installed and activated. I just want to know the process to importing a file to override the parent theme.
Do I just copy (for example, single.php) and paste the file in the child theme directory?
What is the correct approach to this?Thank you for your time,
– SixT.June 20, 2016 at 7:42 am #1050502
ChristianModeratorJune 20, 2016 at 8:09 am #1050544
SixTsevNParticipantThat article was very helpful but, I don’t see anything referring to the expanded themes. I don’t see them in the “views” directory. Is there a different process to importing their files? I’m using agency.
June 20, 2016 at 8:40 am #1050590
JoaoModeratorHi There,
The expanded demos work exactly the same like the others. The only difference between the expanded demos and the standard is that the expanded demos come with some inner pages ready, like contact, about us etc… But regarding the child theme changes there is no difference.
Agency Demo uses Ethos Stack.
Could you clarify what you are trying to achieve in order that we can help you? Thanks
Joao
June 20, 2016 at 9:23 am #1050669
SixTsevNParticipantOh great, that’s what I needed to know about the Agency Demo.
I’m trying to remove the featured image, displayed in my posts. While keeping it displayed in my blog carousel.
I just remove the part about displaying thumbnail in single.php, right?June 20, 2016 at 10:16 am #1050760
ChristianModeratorNo, though that is the starting point. If you open single.php, you will see only one line of code and that is
<?php x_get_view( x_get_stack(), 'wp', 'index' ); ?>x_get_viewfunction basically says get the Stack directory which is wp-content\themes\x\framework\views\ethos in the case of the Agency expanded demo then get the file with awpprefix and followed byindexso that iswp-index.php. That is not yet the file you’ll need to modify for your case as that still points to other files. The file you’ll need to copy to your child theme and modify is framework\views\ethos\content.phpHope that helps. 🙂
June 21, 2016 at 6:12 am #1052310
SixTsevNParticipantOkay so I copied the file directory “framework/views/ethos/content.php” to my child theme, including the content.php file. I removed the div with the class “entry-featured” but, it made no difference to my post at all. Which is bizaar. I assume this is a caching issue, but I cleared my wordpress cache and my browser cache. Am I still doing something wrong?
June 21, 2016 at 7:19 am #1052388
ThaiModeratorHi There,
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.
Thanks.
June 21, 2016 at 7:28 am #1052399
SixTsevNParticipantThis reply has been marked as private.June 21, 2016 at 8:49 am #1052533
Paul RModeratorHi,
Ftp login doesn’t seem to work.
Kindly check again and let us know.
Thanks
June 22, 2016 at 10:24 pm #1055683
SixTsevNParticipantThis reply has been marked as private.June 23, 2016 at 2:23 am #1055892
Rue NelModeratorHello There,
I am now logged in to your ftp. I see your changes and confirm that it is correct. Regretfully I cannot check the output because I cannot login to your site. The password is not working for me (http://prntscr.com/bjw694).
For the meantime, please make sure that the child theme is active. And another thing, if you are using post format, you also need to copy and edit the
content-{format}.phpfile into your child theme.Hope this helps.
June 23, 2016 at 4:02 am #1055975
SixTsevNParticipantI was formatting the post as an image post but, I couldn’t find content-{format}.php.
However, I was able to achieve the functionality I was looking for.In order to display the featured image in the indexed part of the blog page, while also displaying in the carousel but, not in the actual post. I had to re-upload content.php and modify it less.
<?php // ============================================================================= // VIEWS/ETHOS/CONTENT.PHP // ----------------------------------------------------------------------------- // Standard post output for Ethos. // ============================================================================= $is_index_featured_layout = get_post_meta( get_the_ID(), '_x_ethos_index_featured_post_layout', true ) == 'on' && ! is_single(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( $is_index_featured_layout ) : ?> <?php x_ethos_featured_index(); ?> <?php else : ?> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-featured"> <?php if ( ! is_single() ) : ?> <?php x_ethos_featured_index(); ?> <?php else : ?> <?php x_featured_image(); ?> <?php endif; ?> </div> <?php endif; ?> <div class="entry-wrap"> <?php x_get_view( 'ethos', '_content', 'post-header' ); ?> <?php x_get_view( 'global', '_content' ); ?> </div> <?php endif; ?> </article>I simply removed this segment:
<?php else : ?> <?php x_featured_image(); ?>Then set the formatting to “standard”.
June 23, 2016 at 4:05 am #1055984
SixTsevNParticipantThank you to all the themeco staff, who took their time to help me with this issue.
Couldn’t have done it, without each of your contributions.June 23, 2016 at 6:17 am #1056135
LelyModeratorYou’re welcome!
Glad we were able to help.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1050475 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
