Okay
  Public Ticket #1264425
How to small scale for disqus comment plugin
Closed

Comments

  • myngcode started the conversation

    Hi Team, 

    Can advice how do i make div for Disqus comment smaller. I wish It's width equal to other elements?

    Attached files:  Screenshot_2017-08-04_11-12-54.png

  •  105
    8 Guild replied

    Hi,

    Sorry for the delay. Just checked the Disqus plugin. Unfortunately, Disqus team not yet implemented feature which allows us to override the comments template provided by Disqus. See attached screenshot.

    So, to fix this issue, please add the following code to functions.php file of your child theme:

    function silicon_entry_comments() {
        // If comments are open or we have at least one comment
        if ( comments_open() || get_comments_number() ) : ?>
            <div class="container">
                <?php comments_template(); ?>
            </div>
        <?php endif;
    }
    

    This will wrap the comments template in the container. Note, this will work only for disqus. If you once want to use built-in comments you have to remove this code, as default WordPress comments already have container block.

    Regards,

    8Guild Team

    Attached files:  Selection.2017-08-06-16:04:17.png

  • myngcode replied

    Thank for your help,  can advice 

    I just install "silicon" theme only.

    What do you mean "child theme"? you mean "silicon-child". any problem occur if i install and active "silicon-child" ?

  •  105
    8 Guild replied

    Hi,

    Yes, I mean a "silicon-child" theme. Child themes are recommended way to make changes for the parent themes. You can find a child theme in our full package (download option "All files and documentation" on the ThemeForest). Also I attached a child theme with some modifications in your previous ticket.

    Known issues about child theme:

    1. May be required to re-assign the menus to their locations. You won't lost it, but sometimes you have to go to the Appearance > Menus and enable checkbox again.

    2. Widgets. Sometimes you may lost your widgets from the sidebars. This is not a theme issue. This is how WordPress works when you switch a theme. Because different themes may have different number of sidebars, etc. WordPress not remove widgets, but move them to "Inactive widgets" and "Inactive sidebars" sections.

    Regards,

    8Guild Team

  • myngcode replied

    Thanks for your support,  - It work

  •  105
    8 Guild replied

    Glad to help you!

    Regards,

    8Guild Team