• I am trying to change a line of code from wordpress admin editor but why it is not changing? I want to change from

    <div id="content" style="width:390px; float:left" role="main">

    to

    <div id="content" style="width:100%; float:left" role="main">

    But when i see it browser , it is steel at

    <div id="content" style="width:390px; float:left" role="main">

    I have saved it properly. What is the reason? Please tell me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Md Alamin

    (@bir0611)

    This is the site link https://www.rentthefarm.com/services

    It seems like you’ve changed it to this?

    <div id="content" role="main" style="margin-right:20px;">

    Your changes seem to be working, but maybe it’s not working the way you think it should? Are you having problems trying to change the width of the content area? It’s because there’s this CSS rule at the end of your style.css file:

    body.page-template-custom-service-php #content{ width: 90% !important; }

    The !important qualifier overrides all other CSS styling, even inline styling. There seems to be a big over-use of the !important qualifier in style.css, whoever created the theme didn’t write the CSS properly, making it overly difficult to change things. If you take that line out, you should be able to change the content width to whatever value you want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why Code not changing ?’ is closed to new replies.