Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,226 through 1,250 (of 32,503 total)
  • Author
    Search Results
  • #228032
    DeepBlue
    Participant

    Ok actually i found the solution, for those who are looking for this :

    create a /css/ folder in your child theme with a tinymce-custom-editor.css with :

    body#tinymce.wp-editor {
        font-family: Sans-serif,Arial!important;
    }

    then add in your functions.php :

    // EDITOR TINYMCE CHANGE POLICE
    add_filter( 'mce_css', 'add_custom_editor_style' );
    function add_custom_editor_style() {
        return get_stylesheet_directory_uri() . '/css/tinymce-custom-editor.css';
    }
    #228022
    Robin W
    Moderator

    sorry, I thought I had answered that above, you play with these settings

    .mce-content-body p {
    	font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    	font-size: 16px;
    	color: #333;
    	overflow-wrap: break-word;
    	word-wrap: break-word;
    }
    #228008
    Robin W
    Moderator

    Is this plugin not compatible with Enfold?

    or you could ask

    is enfold not compatible with this plugin?

    check out

    https://kriesi.at/support/topic/getting-bbpress-to-work-with-the-enfold-theme/

    and perhaps raise with enfold as this is a paid theme

    #228000

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #227999

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    add_action( 'bbp_template_after_single_topic', 'rew_other_topics' );

    #227990

    In reply to: Similar topics bbpress

    Robin W
    Moderator

    but latest 5 if you have style pack installed would be

    add_action( 'bbp_template_after_replies_loop', 'rew_other_topics' );
    
    function rew_other_topics () {
    	 $topic_id = bbp_get_topic_id() ;
    	 $forum_id = bbp_get_topic_forum_id($topic_id) ;
    		echo do_shortcode("[bsp-display-topic-index show='5' forum =".$forum_id." template = 'list']") ;
    }

    though this would show the topic again if it were in the latest 5!

    #227978
    Robin W
    Moderator

    bbpress just uses the .body font from the wp-content.css file.

    You could style it using

    .mce-content-body p {
    	font-size: 25px;
    }

    but this will not save to the post, it will just be what is shown in the form

    #227958
    ibergstrom
    Participant

    Hello,

    On my staging site, k9fitness1dev.wpengine.com/ for my client, I installed BBPress. The forum page works fine, but when I try to open a topic page, it shows the content from blog posts that were published a super long time ago. I tried unpublishing the blog posts, but it still shows these contents.

    I am using WP version 5.8, bbPress 2.6.9, the enfold theme which is to date, and I believe that this glitch has something to do with the Avia advanced page builder, because the content that is generating shows a bunch of short codes that look like avia shortcodes.

    I tried to repair the forums, under the forum settings, but this did not cause any changes.

    Thanks in advance for your help.

    #227950
    Robin W
    Moderator
    add_action( 'bbp_theme_after_topic_started_by' , 'rew_add_date' ); 
    
    function rew_add_date () {
    	echo ' on ' ;
    	bbp_topic_post_date() ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #227932
    ollietubb1
    Participant

    Sorry yes it has!

    Thank you, had some code in the wrong place in the functions file.

    Appreciate your help Robin 🙂

    #227931
    ollietubb1
    Participant

    Thank you Robin,

    I have added the code in my child theme functions.php file.

    It hasn’t changed the page title though. Any further suggestions?

    Thanks,
    Ollie

    #227930
    Robin W
    Moderator
    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    
    function rew_bbpress_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Forums' => 'Forum'						
                 );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #227912
    DeepBlue
    Participant

    Hi

    Of course you can 🙂

    XenForo

    #227877
    andalusian
    Participant

    Hi,

    I installed the plugin, but it doesn’t really show the account page, it only shows the link and it is not clickable? Am I correct? Is there not something like with WooCommerce where subs can click the link and it redirects them to their profile page? The short code for woo is [woocommerce_my_account].

    #227861
    Robin W
    Moderator

    so have you tried

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 0 ;
    }

    or

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return false ;
    }

    or indeed

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 'hello' ;
    }

    it would appear to be a known issue

    https://pluginus.net/support/topic/first-filter-disappears-when-set/

    otherwise suggest you raise with woof

    #227850
    DeepBlue
    Participant

    Phpbb issues :

    phpBB

    #227849
    Robin W
    Moderator

    that line allows the result to be filtered

    so this should work

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #227848
    DeepBlue
    Participant

    It says 3x:

    Import Forums

    Robin W
    Moderator

    Do you do custom code?

    yes

    bbspammedin2022
    Participant

    Thanks for the info! Do you do custom code?

    We are using akismet but it isn’t very effective. It is only catching a small percentage of the reply spam.

    #227842
    tomcrise
    Participant

    Hello,

    I found a bug when using bbrpess and WOOF (Woocommerce Product Filter). Indeed, when bbpress is activated, when you want to filter products by category, the WOOF’s widget disappears. With a lot of tests on multiples websites, I found this bug comes from bbpess.phpclass on setup_variables() function when the attribute topic_tag_tax_id gets apply_filters( 'bbp_topic_tag_tax_id', 'topic-tag' ) value. When you comment this line, the bug is solve.
    As I don’t need tags on my Forum, I just need to set $this->topic_tag_tax_id = 0 and hide Topic tags form.

    But Here is my final problem : How can I overwrite this class because it’s not a template but the plugin file ?

    PS : I tried every possibilities (plugins versions, select another theme, change product database, catch network and files errors), the bug really comes from here as strange as it may seem.

    Cheers,

    TomCrise

    #227825
    Robin W
    Moderator

    none of this testd, but the actual adding of an image to the post would be something like

    add_action('bbp_template_before_single_topic', 'pym_print_featured_image_single_forum', 11);
    		
    	function pym_print_featured_image_single_forum() {
    		if (has_post_thumbnail()) {
    			echo '<div class="pym-bbp-topic-thumbnail">';
    			echo get_the_post_thumbnail(null, 'thumbnail' );
    			echo '</div>';
    		}
    	}

    adding featured topic to the backend would be something like

    add_post_type_support('topic', array('thumbnail'));

    Code could be written to allow the user to add an image, but that’s a chunk of work !!

    Robin W
    Moderator

    1. is doable, but would require custom code beyond free help

    2. hmmm… that’s kinda how I do this on this site, but I only have a dozen or so each day. Are you using askimet to help reduce spam?

    3. again would depend on what format the list is in, but beyond free hep as site specific.

    if you need paid help, contact me via

    Contact me

    #227822
    Robin W
    Moderator

    not sure how this is related to bbpress.

    I suspect you will need to set something in your theme

    dashboard>appearance>customise

    this custom css might help if you can’t find where to set the width

    #wrapper.boxed #theme-header, #wrapper.boxed .breaking-news, #wrapper.boxed #main-content {
    	width: 1200px !important;
    }
    #227819
    Sello
    Participant

    Hello guys. Technically I’m not very good at web stuff. I opened a wordpress based website. I have a licensed “Sahifa” theme. Everything is fine on the site, but my site is very “thin” on desktop platforms. There is no adjustment in the page settings for this. Especially when accessing from high-resolution monitors, the left and right sides of the site are blank. I hope I was able to explain. There is a css code etc about that. is there?
    Thanks 🙂

    My site: https://www.turkishvibe.com

Viewing 25 results - 1,226 through 1,250 (of 32,503 total)
Skip to toolbar