• Resolved PareStrano.it

    (@funesto)


    Hello!
    I was wondering if (and how) I could change style and colours of the “Last topic widget”. For instance I’d need to change the post title to the red color.

    Is there some CSS custom code I could add?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author axew3

    (@axewww)

    Ciao!

    To customize Last Topics Widget, you need to open the file:
    /wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics.php

    If you need to change the Post Title link color, and you’re skilled html/css, just read where these lines:

    $w3all_lastopics_style_ul = 'list-style:none;margin:0px'; // change into whatever you need
    $w3all_lastopics_style_ul_class = 'w3all_ul_widgetLastTopics'; // declare this class .w3all_ul_widgetLastTopics into your css template and style ul element as needed 
    $w3all_lastopics_style_li_class = 'w3all_li_widgetLastTopics'; // declare this class .w3all_li_widgetLastTopics into your css template and style li elements as needed 

    so style via css into your template the a element for these classes.

    A not complete example about this that i will improve withone more clear and working, maybe for the title as you request, is available here:
    Style Last Topics and Login Widgets how to

    If you modify these files, and you not style using CSS added into your template CSS file only, to avoid that modification you’ve done, aren’t lost when plugin update, because the update overwrite all default plugin’s files, You should create a custom folder
    wp-w3all-config into /wp-content/plugins, so you’ll have:
    /wp-content/plugins/wp-w3all-config
    (maybe you’ve already create if you’re using the custom config.php phpBB file)
    paste into it ALL four (4) files you’ll found into folder:
    /wp-content/plugins/wp-w3all-phpbb-integration/views which are:

    phpbb_last_topics_output_shortcode.php
    phpbb_last_topics.php
    login_form_include_iframe_mode_links.php
    login_form_include_noiframe_mode_links.php

    and setup the related option on WP_w3all config page, that force to use these files instead than default files into WP_w3all plugin folder. So when plugin will update, your template modification aren’t lost.

    Se hai ancora problemi fa sapere! Ciao

    • This reply was modified 8 years, 4 months ago by axew3.
Viewing 1 replies (of 1 total)

The topic ‘Changing Style & Colours’ is closed to new replies.