• Resolved arudd

    (@arudd)


    On line 794 – Add class to $prevlink:

    $prevlink = ($nextoffset > 0) ? '<a class="prev" href="' . bib_get_permalink() . '&bib_page_offset=' . $poffset . '">

    On line 794 – Remove non-active link $prevlink with class addition:

    $prevlink = ($nextoffset > 0) ? '<a class="prev" href="' . bib_get_permalink() . '&bib_page_offset=' . $poffset . '">' . $blog_in_blog_opts['bib_text_previous'] . '</a> ' : '<span style="display:none">' . $blog_in_blog_opts['bib_text_previous'] . '</span>';

    On line 795 – Add class to $nextlink:

    $nextlink = ($noffset < $catposts) ? ' <a class="next" href="' . bib_get_permalink() . '&bib_page_offset=' . $noffset . '">'

    On line 795 – Remove non-active link $nextlink with class addition:

    $nextlink = ($noffset < $catposts) ? ' <a class="next" href="' . bib_get_permalink() . '&bib_page_offset=' . $noffset . '">' . $blog_in_blog_opts['bib_text_next'] . '</a>' : '<span style="display:none">' . $blog_in_blog_opts['bib_text_next'] . '</span>';

    Add .prev & .next styles to your CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi arudd,
    Thanks for the idea. I’ll just add classes to the spans rather than using the style attribute, then people can style/hide them as they wish. that’ll be in the next release (1.1). Also I have used more specific/descriptive classnames to avoid css classnames clashing (e.g. bib_next_link bib_next_link_inactive )

    Cheers
    Tim

    Thread Starter arudd

    (@arudd)

    Great, I knew there was a much better way of doing it.
    Glad to help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Blog-in-Blog] Add class & Remove non-active "Prev/Next" links’ is closed to new replies.