• Resolved Starlord

    (@aqif-majid)


    Hello,
    What if we want to add more option after all the posts of a single category. I don’t mean like the read more option after every post.. i mean like more option after a particular category posts end on home page. A option which would take us to that category. As of now if there are only 4 posts of a particular category displayed on home people think there are only 4 so by adding a More option may be they could look for more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Richie KS

    (@rkcorp)

    open lib/templates/home-feat-cat.php, add this before each block end aside like this

    <a style="text-align:center;border-radius:10px;font-weight:bold;clear:both;font-size:16px;padding:10px;background:#ddd;color:#333;display:block;" href="<?php echo get_category_link($featcat1); ?>">More posts &raquo;</a>
    <!-- add above -->
    </aside>

    remember to change the $featcat1 to the number of each block.

    Thread Starter Starlord

    (@aqif-majid)

    Thank You So much Richie it worked what if we want to change the text more posts to More and then name of category?

    Theme Author Richie KS

    (@rkcorp)

    something like this

    <a style="text-align:center;border-radius:10px;font-weight:bold;clear:both;font-size:16px;padding:10px;background:#ddd;color:#333;display:block;" href="<?php echo get_category_link($featcat1); ?>"><?php echo ucfirst($featcat1); ?></a>
    <!-- add above -->
    </aside>

    different would be ‘more posts’ change to <?php echo ucfirst($featcat1); ?>

    Thread Starter Starlord

    (@aqif-majid)

    No but I fixed it myself your code shows the category number like 1, 2 etc we have to use <?php echo ucfirst($featcat1_name); ?>
    this will fix..
    Thank You so much for your help. but the more post appears not in a single row like this http://s11.postimg.org/opuzbhahv/Untitled.png is there any way they appear uniformly at the end of al the categories..not up and down for diff categories.
    Thank you.

    Theme Author Richie KS

    (@rkcorp)

    you can’t, the block is not fixed height.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add more option in Home page’ is closed to new replies.