• Resolved thefoofighter

    (@thefoofighter)


    Hi,

    Recent user of WordPress,

    On my site http://www.sourcemodding.com

    I have integrated a phpbb3 forum into wordpress through wp-united plugion and everything works great.

    I have one tiny issue though and it is related to padding around the forum. I am using the Yootheme yoo Sphere template which works well with the forum as well.

    Specifically the issue can be best described in the following images.
    Below you can see that there is a 20px padding around my forum which comes from the default layout.css which is part of yootheme-sphere.
    #content {padding: 20px;}
    20px padding

    In the following image I have simply disabled the #content tag in Chromes debugging options. This is my desired result.

    0px padding

    What i have tried so far to no avail is adding custom CSS to the page itself in the html editor with

    <style>
       #content {padding:0px;}
    </style>

    I know this works as ive tried it on other pages with no issue (the plugin I use for the custom CSS is Royal Custom CSS)

    I have tried going into the CSS itself and modifying it via page id:

    .page-id-768 #content{ padding:0px; }

    Also know this works as ive tried it on other pages

    I then started reading up on custom templates for specific pages but so far i havent had much luck,
    My forum does use one to load the page, I tried adding the custom CSS here also

    <?php
    /**
     * Template Name: Sourcemodding Forum Template
     *
     * A custom page template for the sourcemodding Forum.
     *
     * The "Template Name:" bit above allows this to be selectable
     * from a dropdown menu on the edit page screen.
     *
     */
    
    get_header(); ?>
    
    <?php the_content(); ?>
    
    <?php get_footer(); ?>
    
    <?php if (is_page(728)) { ?>
    <style type="text/css">
    <!--
       #content {padding: 0px; }
    //-->
    </style>
    <?php } ?>

    The above template is used by wp-united to display the forum inside wordpress.

    wp-united settings

    So so far i am at a loss as to what i should do,

    I think what i need is some kind of custom template or theme that is called in function.php to load custom css for this one page.

    Not sure how to go about this

    Any assistance would be greatly appreciated

    Thank you

The topic ‘Custom CSS in an integrated phpbb Forum’ is closed to new replies.