Hi @ayham,
Moving the meta is just easy, but creating the same layout will need custom development. Let’s continue with moving the meta.
- Please make sure you installed a child theme and it’s active
- Then using your FTP or hosting’s file manager, copy the file
wp-sidebar.php
from this folder \wp-content\themes\x\framework\views\{YOUR STACK}\
And paste it to your child theme with the same folder structure, create folders when needed. Example, \wp-content\themes\x-child\framework\views\{YOUR STACK}\wp-sidebar.php
And the {YOUR STACK}
is your site’s current stack selected in Theme Options.
- Edit your child theme’s
wp-sidebar.php
and add any of this line representing your current stack
<?php x_renew_entry_meta(); ?>
or
<?php x_integrity_entry_meta(); ?>
or
<?php x_ethos_entry_meta(); ?>
or
<?php x_icon_entry_meta(); ?>
Example,
<?php
// =============================================================================
// VIEWS/INTEGRITY/WP-SIDEBAR.PHP
// -----------------------------------------------------------------------------
// Sidebar output for Integrity.
// =============================================================================
?>
<?php if ( x_get_content_layout() != 'full-width' ) : ?>
<aside class="<?php x_sidebar_class(); ?>" role="complementary">
<?php x_icon_entry_meta(); ?>
<?php if ( get_option( 'ups_sidebars' ) != array() ) : ?>
<?php dynamic_sidebar( apply_filters( 'ups_sidebar', 'sidebar-main' ) ); ?>
<?php else : ?>
<?php dynamic_sidebar( 'sidebar-main' ); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
Now, post meta should be displayed just above the sidebar before your widgets, I assume your social icons are part of your widgets.
-
Now, let’s remove the meta below the title. Repeat step #2 but this time, for file _content-post-header.php
, example, \wp-content\themes\x-child\framework\views\{YOUR STACK}\_content-post-header.php
-
Edit your child theme’s _content-post-header.php
and remove the line similar to the step #3. Example, if you see <?php x_icon_entry_meta(); ?>
, then delete it.
This should allow you to edit two themes moving the line by adding new and deleting the old. All templates that you’ll edit should be copied from parent theme into the child theme. And you must only edit the files copied to the child theme.
Hope this helps.