• I moved title,category,comments etc from single.php to header.php

    any issue doing that?

    And how to achieve the above without moving the code?
    And how to do it in child theme?I am using a child theme being human

    https://www.techfriction.com this iz my site

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter psycode

    (@psycode)

    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 https://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.

    Thread Starter psycode

    (@psycode)

    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.

    Thread Starter psycode

    (@psycode)

    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.

    Thread Starter psycode

    (@psycode)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Any problem if i move title into header??’ is closed to new replies.