juuhachigo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Underscores Cannot recognize header.php and footer.php1) Yes, in both files.
2) Yup to that as well
3) I have tried modifying header and footer, so that I could useget_header()
andget_footer()
, and also tried usingget_header('custom')
andget_footer('custom')
. Neither seemed to work.
4) No, I didn’t use a child theme and I honestly don’t know whether I was using a cache, but I managed to fix it and it did seem to be some kind of cache problem.
Apparently, WordPress wasn’t recognizing the various files as part of the theme, but I accessed the dashboard > Settings, updated the permalinks and it suddenly started working °_°. I’ve never seen anything like that before, ever.Forum: Fixing WordPress
In reply to: Underscores Cannot recognize header.php and footer.phpThank you so much. Yes, that sems to be the problem, but the thing is, Underscores does load the css file via
function cartabianca_scripts() { wp_enqueue_style( 'cartabianca-style', get_stylesheet_uri(), array(), _S_VERSION ); wp_style_add_data( 'cartabianca-style', 'rtl', 'replace' ); wp_enqueue_script( 'cartabianca-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true ); wp_enqueue_script( 'cartabianca-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), _S_VERSION, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'cartabianca_scripts' );
Judging from the pink on the links in the theme’s sngle post, I gather it recognized some of it… I’ll recheck the whole code again and let you guys know!
EDIT: I looked at my header and footer files and, as you can see in the single.php screenshot, the footer is evidently different: it’s the standard Underscores one, rather than the Lorem Ipsum I customized myself, but it still retains some of the css I spcified, so it’s not strictly a CSS problem.
- This reply was modified 4 years, 6 months ago by juuhachigo.
- This reply was modified 4 years, 6 months ago by juuhachigo.
Thanks!!! I’ll try!
What if I had an alternative stylesheet ready and wanted to ‘tell’ functions.php ‘recall this stylesheet for this single post in this category’? Is there a way to do that?
Not that I recall? ;_;
But I do need to ‘tell’ the theme that a single post in a given category needs a different css file, don’t I? That’s what I’m not able to do.
Forum: Themes and Templates
In reply to: how to edit entry meta?YOU’RE MY FAVOURITE PERSON EVER XDDDDDDDDDDDDD
Forum: Themes and Templates
In reply to: how to edit entry meta?Oh, thanks – but wasn’t letter-spacing supposed to space the letters? Didn’t know it could put space between words? Sorry for the stupid question but I haven’t used HTML in a very long time and started again just recently!
Forum: Themes and Templates
In reply to: My background won't show up in div id containerOh my God, thanks, I had forgotten to copy the footer part of my source code!