Hi psycode.
any issue doing that?
Header.php is used on every page so you’d have to try it to see if there are any problems.
And how to achieve the above without moving the code?
You could probably do it using CSS but it would almost certainly affect the rest of the page, and you’d have a significant amount of work to do in responsive.css. Moving the code is the “right” way to do it. But, if you move the code, the theme CSS is going to expect it to be somewhere else so you’d probably have to add custom CSS to override the theme styles.
And how to do it in child theme?
Copy header.php to your child theme and make the changes there. Then WP will use that copy of the file instead of the copy in the theme.
i did move the code already but i wanted to know if that is a good practice
any alternate way of doing that inside single.php without moving the code
i just need to display my page title ,comment,category etc as seen in my website here http://www.techfriction.com
You can either move the code and/or do it with CSS. It’s a personal preference. If moving the code gives you the results you want then I wouldn’t change it.
how to do it with css bdbrown.Can you tell me?
i have no experience in coding but i understand most of it by seeing it
i’ve been been editing my themes myself for a while
Moving the elements with only CSS would be significantly more complicated than moving the code because you would potentially affect the position of other elements on the page. And you’d also have to change the media queries in the responsive.css file. I accept that you may understand most of it by seeing it but, if you “have no experience in coding” then trying to implement CSS changes like this, in my opinion, isn’t the place to start. I don’t really have the time to (a) try to figure out the initial configuration, and (b) support it later when you make other changes. I’d be glad to help you with questions regarding the theme itself but the types of changes you’re wanting to make are, again in my opinion, outside the scope of the support for which the forum is designed.
thank you brown , that was indeed the answer i need.
thanks for the help man .
You’re welcome. If you don’t need any further assistance here please mark the topic as Resolved. Thanks.