unityscot
Forum Replies Created
-
<?php get_sidebar(); ?>I understand that, have removed it, but had to use Yellow Pencil to make the page full width. It looks OK now, but not as perfect as I’d like.
There are other issues, but that will need a new thread.
Thanks for your help on this one, even tho you completely missed the point I was making about adding “Page Attributes in the backend for admins to remove the theme sidebar via your page. Perhaps you’ll add it in a future update. Who knows.
Thanks for your help so far.
This is the code that I have:
<?php /** * The template for displaying all single posts. * * @package pandrah */ get_header(); ?> <div id="primary-mono" class="content-area <?php do_action('pandrah_primary-width') ?>"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'modules/content/content', 'single' ); ?> <?php //pandrah_post_nav(); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // end of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>I have tried it with and without
<?php get_sidebar(); ?>And nothing changes with regard to the width of the listings.
The content of the sidebar is taken out, but the sidebar itself is still there, but empty.
- This reply was modified 6 years, 11 months ago by unityscot.
OK, I made a file as you said, and uploaded it to the theme, with get sidebar removed, but it solves nothing. I still have a crushed listing, and a large empty space next to it.
https://rock.scot/event/solo-acts-testing-again/
We DEFINITELY need “Page Attributes” added in the backend. And PLEASE stop saying its a theme issue. Its YOUR page that doesnt have it, while all others do.
Maybe you dont understand what I mean?
Here’s an image from the backened. It clearly shows what missing. Its the right side of the page https://rock.scot/wp-admin/post.php?post=346&action=edit
But why do you keep ignoring what I’m saying?
We NEED the option added to single event page to remove the theme sidebar the same way we can on all other pages.
Surely all you need is either a hook to Page Attributes, or copy the code into your file?
I’m at the stage now, that if I can find that code, I’m going to add it myself. Sadly, the page attributes table code is very well hidden in WordPress files.
Sorry, my last post was badly written. I shouldnt post from my phone.
Should be:
The date, time, etc is still there as a sidebar tho.
That would look better below the event details. Perhaps between “Event Overview” and “Ticket Information”
I also think you miss my point about adding the remove sidebar table I suggested adding in. I mean the theme sidebar, not your own one.
We need that option when editing the single event page. The plugin will not look good in many themes the theme sidebar still there, and no way of removing it.
Surely, it’s only a case of copying over the page attributes block/table from the WordPress page, or adding a hook, into your own page in the backend for editing listings?
- This reply was modified 6 years, 11 months ago by unityscot.
The date, time, etc is still there as a sidebar tho.
That would look better below the event details. Perhaps between “Event Overview” and “Ticket Information”
I also think you miss my point about adding the remove sidebar table I suggested adding in. I mean the theme sidebar, not your own one. We need that option when editing the single even page. The plugin will look good in many themes with the theme sidebar still there, and no way of removing it.
Surely, it’s only a case of copying it over from the WordPress page, into your own page?
That would be a good start, thanks.
I would STILL add in Page Attributes as well for the backend. Allow users to decide whether to show a sidebar or not. If you can write such as good plugin, it should be easy for you to add in.
No. YOU misunderstand.
1. I do not understand anything on that page you keep posting. Thats for experienced coders who know how wordpress works, and is experienced with coding. I am no one of these people.
2. You page, generated by the plugin does not have page attributes section to hide the sidebar when in edit mode. The theme allows the sidebar to be turned off (hidden) in all other pages, but not on your single even listing. This is a plugin issue, not a theme one.
My suggestion?
Code in the Page Attributes table into your single event listing page (same place as other pages, bottom right). That allows everyone, no matter what theme, to decide whether to show it or not. Then release an update.
You already have an amazing plugin here, but that sidebar is a problem that will not go away unless you take action to allow us to hide it or not.
Here’s a link to the initial problem.
Here’s a link to your solution with the huge iframe.
The first is how I’d like it to look. Its not perfect yet, but it would allow the site to go live. The second option, would mean the plugin having to be removed.
No, I do not understand any of that. I’m not a coder. I have NO CLUE on how do do want you ask.
As for blaming the theme, I’m sorry, but the theme is not the problem. Your plugin generates the listing, which the content can be edited, but without the page attributes part.
I dont understand any of that. It makes no sense at all to me. I dont even have a file called “single.php” that I can find.
That makes things even worse. It brings up a huge, grey coloured iframe that looks horrendous, and doesnt show the two missing sections.