Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,001 through 9,025 (of 32,505 total)
  • Author
    Search Results
  • #160783
    Robkk
    Moderator

    @danajoy2008

    I’m really not sure — I have no record of installing a cache plugin, and I can’t recall when I noticed that button up there. I’m totally confused.

    can it be your host?? or you could be using something like Wordfence that also has caching in it??

    I’ve put the code your posted above into the Simple Custom CSS, but the Favorite and Subscribe buttons are still blue. Was there something I was supposed to do besides just cutting and pasting?

    i probably need to add more classes to the CSS code.

    Also, this is strange: After I clicked on “flush cache,” I could immediately see the blue links when I had the site open in Chrome. When I open Firefox and pull up the site, I can’t see any blue — it’s all gray again.

    it might also be collected browser cache on your CPU, not 100% sure though.
    i think i had that problem before.

    #160781
    Robkk
    Moderator

    @davidnsfw

    alright since i think your site has jetpack installed

    make sure you have the custom css module activated in jetpack .

    now go to appearance > edit css

    copy this code into your custom css editor.

    .bbpress .post-section {
      margin: 0 2% 20px 2%;
      width: 96%;
    }
    
    .bbpress #content-main {
      width: 100%;
      margin-right: 0;
    }

    hit save

    check and see if it works

    if the code does work, reply back on here that it works now.

    if the code doesnt work i need to see if any Custom CSS on bbPress would show . so copy and replace my old CSS code that you just previously pasted

    with this code

    .bbpress a {
      color: red;
    }

    now see if your links on your forum are red

    if it turns red, reply back here that your links are red and that i need to add more classes to your original CSS so i could make your forum full width.

    #160779
    Robkk
    Moderator

    @davidnsfw

    yeah , a place where you can drop CSS code snippets

    #160778
    mel77
    Participant

    Hi Robin, thanks for your help.

    It turned out to be a theme issue. I managed to fix it by using the 2nd option in part 3 of your guide “Creating a forum page”: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/

    #160774
    DanaJoy2008
    Participant

    I’m really not sure — I have no record of installing a cache plugin, and I can’t recall when I noticed that button up there. I’m totally confused.

    I’ve put the code your posted above into the Simple Custom CSS, but the Favorite and Subscribe buttons are still blue. Was there something I was supposed to do besides just cutting and pasting?

    Also, this is strange: After I clicked on “flush cache,” I could immediately see the blue links when I had the site open in Chrome. When I open Firefox and pull up the site, I can’t see any blue — it’s all gray again.

    #160770
    Svend Rugaard
    Participant

    Now it just give my the seperator code but you can see it on a random pages wit 404 but see as in this random created page it is showing correct name in the browser top – http://www.playstationforum.dk/just-just-test/

    but now i actually manage to get the archive remove but doesent show “Debat” as it should be but i think its som tag / slugs i have mess up in the backbone of the theme, i fix it nothing to do with this topic i think but i was just wondering it only was the forum there do it.

    #160769
    Robkk
    Moderator

    These two Custom CSS rules should help.

    put them anywhere you can put custom CSS

    child themes style.css file
    jetpacks custom CSS module
    a standalone custom css plugin.

    .bbpress .post-section {
      margin: 0 2% 20px 2%;
      width: 96%;
    }
    
    .bbpress #content-main {
      width: 100%;
      margin-right: 0;
    }

    if this does not work try this CSS for a test

    if the links in your forum turn red the CSS is working.

    .bbpress a {
      color: red;
    }

    if the links are red and my above CSS rules for full width arent working i probably have to redo the CSS rules i gave you above to include more div classes which will be super annoying.

    Robin W
    Moderator

    You are not understanding the problem.

    spot on !

    the code you gave is an action, so would not contain the breadcrumb unless some other code outside bbpress is actioning it.

    can you give us a link/url to a page and tell us what you want moved/added/changed

    #160765
    DanaJoy2008
    Participant

    That is an excellent question — I don’t have any cache plugin listed, as being either activated or deactivated. That’s part of what’s confusing the daylights out of me. I have a “flush cache” option at the top on the admin page, and when I clicked that, I was able to see the blue links.

    Thanks so much for the extra code! You’re brilliant!

    #160764
    Robkk
    Moderator

    I’m still working on how to disable caching for logged in users.

    what cache plugin are you using??

    Is there a way to make it so that the Favorite and Subscribe buttons aren’t blue too?

    here i think i copied how the sidebar links are shown.

    .bbpress a.favorite-toggle,
    .bbpress a.subscription-toggle {
        color: #000;
    }
    
    .bbpress a.favorite-toggle:hover,
    .bbpress a.subscription-toggle:hover {
        color: #707070;
    }
    
    #160761
    Robkk
    Moderator

    Slightly NSFW

    i laughed at this.


    @davidnsfw
    add !important after 96% like this

    .bbpress #content-main {
    width: 96% !important;
    }

    and see if that works.

    Jake Hall
    Participant

    You are not understanding the problem.

    There is a hardcoded breadcrumb within what I seem to think is within this line of code:

    <?php do_action( 'bbp_template_before_forums_loop' ); ?>

    I am essentially stuck with the breadcrumb only in the forum root page, I have been able to move it via the user of template files in every other part of the forum. It seems to be impossible to remove the breadcrumb from the homepage using templates.

    #160759
    davidnsfw
    Participant

    I have added this code but it does not help.

    #160758
    Robin W
    Moderator

    try adding

    .bbpress #content-main {
    width: 96%;
    }

    to your style.css

    Functions files and child themes – explained !

    Robkk
    Moderator

    @pazzaglia1

    you are running into a couple issues.

    As for some users i can see their profile leads to a 404 too.

    create me an Admin account and send me the login details by email so i can see what plugins you are using , if there is a code snippet causing an issue, your theme , or something else.

    when im done helping you , you can delete the account.

    Contact

    Robin W
    Moderator

    bit of a difference between

    and wanted it removed completely

    and

    I merely want to move it.

    🙂

    but it doesn’t seem as if that’s possible.

    um, yes it is, you just hadn’t asked !

    just use

    <?php bbp_breadcrumb(); ?>

    in the code

    there are many template files that use this

    just look in

    templates\default\bbpress\

    and you’ll find all the templates

    tell us where you want it, and we’ll try to help further

    #160748

    In reply to: Setup problems

    Robin W
    Moderator
    Robkk
    Moderator

    this should do it, place in child theme functions.php or a functionality plugin

    function bm_bbp_no_breadcrumb ($param) {
    	
    	if (bbp_is_forum_archive()) {
    
    		return true;
    
    	}
    
    }
    
    add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');
    #160746

    In reply to: Full width forum

    gezginrocker
    Participant

    My final update about this topic, in case it helps some one.

    Putting the value at the style.css as not working, because there was a missing “}” at the code. I found it and corrected it, now everything works properly.

    Although, I have found out that putting a fixed value like “width: 720px” is not a very good idea, because it breaks the mobile display.

    Because of that, I put “width: 120%”, and now both desktop and mobile display works properly.

    #160745
    Svend Rugaard
    Participant

    actually it should be activated because the theme has it coded in and i have change it on other types og posts, game archives etc , but i found the “archive” was actually blank with note keyword

    so i try to se ikke i use the same i use for game info is gonna work.

    %%title%% | %%category_description%%

    Jake Hall
    Participant

    Hey Rob,

    That came out a little rude, I didn’t mean it like that. I was just trying to say I wasn’t interested in hiding it with a CSS Rule, and wanted it removed completely. You say it is a perfectly valid way of removing things, but since when is having duplicate content and useless elements on a page a good thing?

    Secondly, the codex page tells you how to completely disable breadcrumbs, I merely want to move it. I was hoping there was a template file I could edit to remove it, and then manually place it elsewhere on the page – but it doesn’t seem as if that’s possible.

    Either way, CSS hide or Functions edit, neither will work in my case since I still want to make use of Breadcrumbs, I just want to change the DOM location

    #160734
    DanaJoy2008
    Participant

    Rob,

    I cut and pasted the code from your last reply to me into the Simple Custom CSS, saved it, and then opened a new browser and checked the site. Still no change.

    Should I post a brand new topic post here with the links and whatnot? Or put the links in a reply here? I’m sorry I’m not sure – I don’t want to make a new post if that’s not what you are asking me to do.

    Thank you all both for being so patient and helpful. I really, really appreciate it.

    #160733
    Robin W
    Moderator

    yes take out the line

    <?php get_sidebar(); ?>

    about 5 line sup from the bottom.

    BUT you need this to be a bbpress.php file in the right directory as per and don’t delete the page.php file – that runs the rest of your site !

    Step by step guide to setting up a bbPress forum – Part 1

    #160728
    Robkk
    Moderator

    if this isn’t possible, I totally understand.

    no its possible , i forgot some periods though.

    Here should be the full code , not shortened though.

    #bbpress-forums div.bbp-topic-content a,
    #bbpress-forums div.bbp-reply-content a {
        color: blue;
        text-decoration: underline;
    }

    if it still doesnt work , post a topic that has a couple links in the replies and topic post and i can find some CSS that would work with your theme.

    #160726
    davidnsfw
    Participant

    I tried making my forums page full-width, but didn’t manage, so if you could help, it would be great.

    Here is my page.php file:

    <?php get_header(); ?>
    <div id="body-wrapper">
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div id="content-wrapper">
    		<div id="content">
    			<div id="post-header">
    				<h1 class="story-title" itemprop="name"><?php the_title(); ?></h1>
    			</div><!--post-header-->
    			<div id="content-main">
    				<div id="content-main-inner">
    				<div id="post-area" itemscope itemtype="http://schema.org/Article" <?php post_class(); ?>>
    					<?php $mvp_featured_img = get_option('mvp_featured_img'); if ($mvp_featured_img == "true") { ?>
    						<?php if(get_post_meta($post->ID, "mvp_video_embed", true)): ?>
    							<?php echo get_post_meta($post->ID, "mvp_video_embed", true); ?>
    						<?php else: ?>
    							<?php $mvp_show_hide = get_post_meta($post->ID, "mvp_featured_image", true); if ($mvp_show_hide == "hide") { ?>
    							<?php } else { ?>
    								<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>
    								<div id="featured-image" class="post-section" itemscope itemtype="http://schema.org/Article">
    									<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-thumb' ); ?>
    									<img itemprop="image" src="<?php echo $thumb['0']; ?>" />
    								</div><!--featured-image-->
    								<?php if(get_post_meta($post->ID, "mvp_photo_credit", true)): ?>
    								<div id="featured-caption" class="post-section">
    									<?php echo get_post_meta($post->ID, "mvp_photo_credit", true); ?>
    								</div><!--featured-caption-->
    								<?php endif; ?>
    								<?php } ?>
    							<?php } ?>
    						<?php endif; ?>
    					<?php } ?>
    					<div id="content-area" class="post-section">
    						<?php the_content(); ?>
    						<?php wp_link_pages(); ?>
    					</div><!--content-area-->
    				</div><!--post-area-->
    				</div><!--content-main-inner-->
    			</div><!--content-main-->
    			<?php endwhile; endif; ?>
    			<?php get_sidebar(); ?>
    		</div><!--content-->
    	</div><!--content-wrapper-->
    </div><!--body-wrapper-->
    <?php get_footer(); ?>
Viewing 25 results - 9,001 through 9,025 (of 32,505 total)
Skip to toolbar