customization - functions.phpreplacing div's with new ones?

admin2025-01-07  4

I'm not sure the best way to tackle this one:

I have a menu I saw and like and want to use it as a basis for my own. I have the CSS for it. On the page it comes from its all labeled differently to my own menu on my own wordpress custom theme.

Should I be using functions.php to call the new CSS divs in place of my own or would there be a better way to do this? I am not super good with coding but im willing to give anything a go =)

The Div classes and ID's I want to use in place of my own:

</head>

<body class="contact page" data-class='contact'>
    <header id="pageHeader" data-title='/ Top of page'>
        <div class="top-wrapper">
            <div class="top">

This is the existing code in headerstyle3.php that I want to replace:

</div>

<div class='absolute'>
<div class='wrapper menu-bg custom-menu-bg border-bottom-black-tr'>
    <div class='container'>

im pretty sure the navigation element for both is "pageHeader" for the new and "container" for the old one.

Any help much appreciated! =)

I'm not sure the best way to tackle this one:

I have a menu I saw and like and want to use it as a basis for my own. I have the CSS for it. On the page it comes from its all labeled differently to my own menu on my own wordpress custom theme.

Should I be using functions.php to call the new CSS divs in place of my own or would there be a better way to do this? I am not super good with coding but im willing to give anything a go =)

The Div classes and ID's I want to use in place of my own:

</head>

<body class="contact page" data-class='contact'>
    <header id="pageHeader" data-title='/ Top of page'>
        <div class="top-wrapper">
            <div class="top">

This is the existing code in headerstyle3.php that I want to replace:

</div>

<div class='absolute'>
<div class='wrapper menu-bg custom-menu-bg border-bottom-black-tr'>
    <div class='container'>

im pretty sure the navigation element for both is "pageHeader" for the new and "container" for the old one.

Any help much appreciated! =)

Share Improve this question asked Oct 19, 2013 at 11:49 tomtom 1 2
  • If your menu requires all of the alterations in the code you posted then @IvanHanak has probably the closest thing to a right answer that there is. You can't make those alterations with functions in functions.php. Those alterations are a theme rewrite. That makes this an extremely broad question. – s_ha_dum Commented Oct 19, 2013 at 14:46
  • Yeah, I agree it is ambitious, I thought perhaps there might be a way to do it painlessly but that doesn't look to be the case. Thankyou for your reply! – tom Commented Oct 19, 2013 at 15:57
Add a comment  | 

1 Answer 1

Reset to default 0

I would definitely suggest you rewritting your theme.

Correct me if I am wrong, but WordPress themes are created so that you can manipulate with them. (if you want)

Another thing to take into consideration is, assuming from your filename headerstyle3, you probably have a theme containing more of such pages, varying in numeric index (headerstyle1, headerstyle2), with a different design, so remember to deal with them also.

Please, bear in mind, that I can not tell you, how to replace your code. In order to do that, you need to provide us with a little bit more info, (like whether you want us to help you replace it), i.e. the whole source of your desired menu, your current file content of the file headerstyle3...

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736261776a768.html

最新回复(0)