WordPress.org

Ready to get started?Download WordPress

Forums

add page to sidebar (4 posts)

  1. elvijn
    Member
    Posted 7 years ago #

    Hi. New to word-press.

    The theme was developed for us. I just created a page and want to add it to the sidebar but can't find the right codex. the theme doesn't have a sidebar.php archive.

    This is the css file:

    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;}
    body{font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}pre, code {font:115% monospace;*font-size:100%;}body * {line-height:1.22em;}

    body {
    background: #0075c4; }

    a {color: #006296;}

    #wp {
    width: 920px;
    margin: 20px auto;
    background: #6fc2d9 url("image.png") no-repeat 750px 200px;
    border: solid 20px #006296; }

    #wptr, #wptl, #wpbl, #wpbr {
    width: 50px;
    height: 50px;
    position: relative;
    background-image: url('border-out.png'); }
    #wptr {
    float:right;
    margin: -20px -20px 0 0;
    background-position: top right; }
    #wptl {
    margin: -20px 0 0 -20px;
    background-position: top left; }
    #wpbr {
    float:right;
    margin-right:-20px;
    bottom: -20px;
    background-position: bottom right; }
    #wpbl {
    margin-left:-20px;
    bottom: -20px;
    background-position: bottom left; }

    #side {
    float:left;
    width: 228px;
    position: relative;
    margin: -20px 10px 20px 10px;
    padding-bottom: 120px;
    background: url('buzo.png') no-repeat bottom center; }

    #menu {
    margin-top: 15px; }
    .inner {
    background: #54afd4; }
    .innertr, .innertl, .innerbl, .innerbr {
    width: 20px;
    height: 20px;
    background-image: url('border-inn.png'); }
    .innertr {
    float:right;
    background-position: top right; }
    .innertl { background-position: top left; }
    .innerbr {
    float:right;
    background-position: bottom right; }
    .innerbl { background-position: bottom left; }

    #menu ul {
    position: relative;
    margin-left: -30px; }
    #menu li {
    padding: 2px 2px 2px 0; }
    #menu a {
    padding: 2px 15px 2px 45px;
    text-decoration: none;
    color: #003c5a; }
    #menu a:hover {
    font-weight: bold;
    background: #0075c4 url('menu-end.png') no-repeat center right;
    color: #fff; }

    #galleria {
    margin: 0 30px 20px 0;}
    #img-gallery .one-image {
    margin-left: 20px;
    float: left; }

    #ctarea {
    margin-left: 255px; }

    #ctarea h2 {
    color: #006296;
    font: bold 18px Georgia,"Times New Roman",Times,serif; }
    #ct {
    width: 450px;
    padding: 10px;
    background: #fff;
    border: solid 3px #006296;}

    #ct p {
    margin-bottom: 10px; }
    #ct strong {
    font-weight: bold;
    color: #006296; }
    #ct em {
    color: #006296; }

    #ct ul.posts li a {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    padding-left: 15px;
    background: url('bullet.png') no-repeat top left; }

    #ct #subimgs {
    margin-top: 20px; }

    #ft {
    clear: both; }

    sorry, maybe this is really basic but I can't work it out....

    thanks!

  2. Alex Cragg
    Member
    Posted 7 years ago #

    CSS is just used to style your page, change colours etc, so that isnt what you need to be looking at here.

    If you give us a link to your site it will be easier to help, but if you dont have a sidebar.php, is the list of pages in your header area?

    If the new page hasnt automatically been added to the list along with your others, then you arent using a function, so the pages will be listed manually, you need to look for something in your files that has this structure, but with your page names.

    <ul>
    <li><a href="http://.........">Page one</a></li>
    <li><a href="http://.........">Page two</a></li>
    <li><a href="http://.........">Page three</a></li>
    </ul>

    then you need to add another line with your new page's name and address, but first a link to your site will help

  3. elvijn
    Member
    Posted 7 years ago #

    thanks. I've been looking for files with that struture somewhere for the last two days, but can't find them.

    my page is: http://www.planetamarino.es

    thanks again!!

  4. elvijn
    Member
    Posted 7 years ago #

    ok! found it!

    it was on a header.php file in the theme folder. Thanks for the tip!!

    :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags