anon2694
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Converting HTML theme with submenu into WordPress themeI’ve got it working by adding ‘menu_class’ to wp_nav_menu and using the original classes from the html navbar. Thanks for your help!
Forum: Developing with WordPress
In reply to: Converting HTML theme with submenu into WordPress themeThanks for your reply. I’ve worked out how to add a placeholder by creating a custom link with # and then created the sub menu.
My problem now is when I add wp_nav_menu into the div where the nav links were in the original html navbar, the links are stacked as a column and not in a row like the original template. Here’s a link to the site – https://wordpress-572627-1929875.cloudwaysapps.com/
Using the broswer inspector I can see that wp_nav_menu has created a div with a class of “menu-navbar-container” which contain my submenu and links. I’ve tried applying some stlying to this div using “display: flex”, “flex-direction: row” but it’s not doing anything.
What am I doing wrong?
Thanks again for your help, it’s much appreicated as I’ve been pulling my hair out all week over this.
Forum: Developing with WordPress
In reply to: syntax error, unexpected tokenSolved. I was missing a colon.
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingMakes sense. Thanks!
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingIs there a way to add a class to the p tags that are added by the_content and the_excerpt so I can have seperate classes?
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingAh ok, thanks! I’ll edit the css for <p> tags.
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingIsn’t wordpress suppose to put in <br> tags along with <p> tags for posts?
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingHere’s a screenshot how the blog posts are appearing.
Forum: Developing with WordPress
In reply to: the_content no paragraph spacingI’ve added add_filter(‘the_content’, ‘wpautop’); to my functions.php file but it has made no difference
Forum: Developing with WordPress
In reply to: transparent nav with header.phpLegend! Thanks very much for your help
Forum: Developing with WordPress
In reply to: transparent nav with header.phpThanks. I’ve managed to get everything working properly apart from my issue with the transparent navbar. I’ve enqueued all my css and js files, enabled various theme options in function.php, created navigation locations, also I’ve got the blog archive.php and single.php working properly with my blog.
I just need to work out now how to identify which page template is being used and add the class dynamically to my html in header.php I think.
Forum: Developing with WordPress
In reply to: transparent nav with header.phpI first built the site as a static site using just html, js and css, so each page has its own independent html where I’ve just added the appropiate wrapper classes.
I’ve been learning wordpress the past couple of days as I’ve tried to convert the site into a wordpress theme. So my wordpress knowledge is limited at the moment.
Forum: Developing with WordPress
In reply to: transparent nav with header.phpI’m gonna have to read up a bit more about this. This is the first site I’ve ever built. Thanks for your help.
Forum: Developing with WordPress
In reply to: transparent nav with header.phpIf the navbar is wrapped in the same div wrapper as the hero, and each page has a different hero that is set by the class of the hero div wrapper, then all pages will have the same hero because the hero wrapper class will be hard coded in header.php
https://stackoverflow.com/questions/66214975/transparent-nav-in-header-php