• Resolved novaplanet

    (@novaplanet)


    The output code of the plugin is un-css-able.

    
    <div class="lcp_catlist" id="lcp_instance_0">
    <!--Looped thing: -->
    <p>
    <a>title</a>   // added custom class here
    <a href="#"> // added custom class here
    <img src="#" alt="" /></a>
    excerpt here
    </p>
    <!-- end of looped thing -->
    
    .......
    </div>
    

    How (or is there a posibillity) to put my custom-content.php code instead of this thing?

    Don’t misunderstand me, plugin is great. I love the pagination and shordcode thing, but I need to show posts exacly like on archives.

    • This topic was modified 6 years, 9 months ago by novaplanet.
    • This topic was modified 6 years, 9 months ago by novaplanet.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter novaplanet

    (@novaplanet)

    Ok, so I added 2 + 2 and got my problem solved.

    For everyone who ever need solution:

    1. Go here: https://github.com/picandocodigo/List-Category-Posts/wiki/Template-System
    2. Do what is written here.
    3. Copy from plugin folder templates/default.php
    4. Edit it as you wish. If you need to add some html thing just do this:

    	$lcp_display_output .= '<div class="divvvv">';
    // THING HERE 
    	$lcp_display_output .= '</div>';
    
    

    5. Do more things and rate plugin 5/5.

    I hope that would help someone in the future.

    • This reply was modified 6 years, 9 months ago by novaplanet.

    Fine that you solved your problem.

    Then again, I thought: ‘Why is it un-css-able.?’

    Because you can easily hook all output if you point to it in CSS like

    .lcp_catlist a { ...}
    .lcp_catlist img { ... }
    .lcp_catlist p { ... }
    ... etc.
    

    Or do I miss your point here?
    Cheers,
    Johannes

    • This reply was modified 6 years, 9 months ago by jbt-csm.
    Plugin Contributor zymeth25

    (@zymeth25)

    Custom templates are one solution, but there are also shortcode parameters for customizing css classes. Check this page for reference.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Template like content.php’ is closed to new replies.