• Resolved Trent Wilde

    (@trent-wilde)


    Hello All,

    I’m new to website creating, and need help with something. I have the Vantage Theme and wanted a widget listing my recently uploaded pages on both my home page and on all my other pages. I found this online:

    <ul>
    
    <?php
    $howmany = 10;
    
    $pages = wp_list_pages("echo=0&title_li=&sort_column=post_date&sort_order=ASCE");
    
    $pages_arr = explode("\n", $pages);
    
    for($i=0;$i<$howmany;$i++){
    	echo $pages_arr[$i];
    }
    
    ?>
    
    <ul>

    It worked just fine until I uploaded more child pages. It still shows up fine on all my pages other than my home page. On my home page the menu shows up with square bullet points and indents each page title further to the right than its parent title (which is one line up). It was actually so bad that it pulled an embedded video and some icons all to the left and had them pulled up right below the recent pages widget even though it is in a separate row.

    I changed the code from this:

    $pages_arr = explode("\n", $pages);

    to this:

    $pages_arr = array("\n", $pages);

    And that fixed the problem of the embedded video and icons being pulled up, but it still looks bad since it has the square bullets.

    What I want is to make it look the same as on the other pages. The code above was exactly the same for the home page as for all the other pages until I changed the word “explode” to “array”. This is now the only difference, but it hasn’t effected the bullets or the size of indentation from one page title to the next.

    You can see difference between how it shows up on the home page and the other pages by comparing these two links:

    home: https://www.bdsda.com/
    other page sample: https://www.bdsda.com/authors/victor-houteff/

    If anyone knows how to fix this problem I would really appreciate the help. Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter Trent Wilde

    (@trent-wilde)

    Alright,
    I tried this:

    /* Vantage Text Widget */
    
    .entry-content .widget_text ul {
    	list-style: none;
    	margin-left: 1;
    }
    
    .entry-content .widget_text ul li {
    	margin-left: 0;
    }
    
    .entry-content .widget_text ul li a {
    	text-decoration: none;
    }

    in custom css and it basically did the trick. If anyone has some incite as to how to customize the spacing more and so on, I’d be interested. For now though, I’ll say it’s resolved ??

Viewing 1 replies (of 1 total)
  • The topic ‘Vantage – Unwanted Bullets in Home Widget (custom recent pages)’ is closed to new replies.