Viewing 7 replies - 1 through 7 (of 7 total)
  • Please provide a link to your example site so we can help you further with the debugging and/or formatting.

    Has anyone modified the Connections theme’s index.php so as to use “get_links_list(),” which

    “Displays a nested HTML unordered list of all links as defined in the Links Manager, sorted under link category headings. Link categories are automatically generated inside of <h2> headings.”

    When I do this, I get a big ugly bullet next to the category.

    If you’re handy with CSS, could you post the code to fix this? I would be deeply grateful.

    By the way, my blog is at https://coopblue.com/blog/. Currently using the default “get_links().” Thanks.

    Thread Starter cbaisden

    (@cbaisden)

    My blog is https://www.symphonyblog.com

    Here is an answer I got from another guy:
    The Quick and Dirty way would be,

    <h2><?php _e(‘PSO Links’); ?></h2>

      <?php wp_get_links(1)?>

    <h2><?php _e(‘Corporate Sponsors’); ?></h2>

      <?php wp_get_links(2)?>

    and so on and so forth. This will work for good. but in future if you change the ‘category name’ from the wp links, it will not change what you have put here on this page. I do not know any other way of looping through the link categories and generating this.

    Why don’t you just use get_links_list?

    tqn69, you probably need to add list-style-type: none; to your css. Without seeing it active on the site tho, I’m not sure which section it would need to go into…

    @cbaisden: nice site, and thanks for the technique. However, I wanted to make get_links_list() work since it would be self-maintaining.

    @oriecat: I get what I want by doing this in index.php:
    <li><?php get_links_list('order'); ?></li>

    and this in style.css:
    #sidebar li {
    list-style-type: none;
    }

    Unfortunately, the generated code isn’t valid XHTMLbecause those <li> tags ought to be wrapped in <ul> or <ol> tags.

    Yet, when I try to do the right thing (<ul><?php get_links_list('order'); ?></ul), the generated code doesn’t validate either, and combined with the Connection theme’s styles, causes the categorized links to nest in a peculiar way:

    <ul><li id="linkcat-1"><h2>Links</h2>
    <ul>
    <li><a href='https://ask.metafilter.com/'>Ask Metafilter</a></li>
    <li><a href='https://henry.coopblue.com/' rel='met sibling'>Henry Nguyen</a></li>

    </ul>
    </li>
    <li id="linkcat-3"><h2>Listening</h2>
    <ul>
    <li><a href='https://www.kexp.org/'>KEXP 90.3 FM</a></li>
    <li><a href='https://www.publicradiofan.com/'>Public Radio Fan</a></li>
    <li><a href='https://www.tuner2.com/'>Tuner2</a></li&gt;

    </ul>
    </li>
    </ul>

    So you see, I’m so close, and I’m going crazy!

    Any help is much appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Using the Connections Theme…’ is closed to new replies.