desbest
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: My wordpress theme name isn’t updating straight awayWhat I mean is that the I’m working on is not in the theme directory so there is no repository to check.
I checked the link you gave me and my theme header or style.css metadata is correct and in full.
Sorry I got my clarification wrong.
I wasn’t trying to remove a class from a container div, but just remove the existence of the container div while keeping its contents.So
<div id="menu1" class="container"> <ul> <li>item 1</li> <li>item 2</li> </ul> </div>
Would change to
<ul> <li>item 1</li> <li>item 2</li> </ul>
And this would have to apply for menus which appear in a “widget area” which can be defined on the customise page of the wordpress dashboard.
Forum: Fixing WordPress
In reply to: My wordpress theme name isn’t updating straight awayThe theme is running on localhost so it’s not in the wordpress theme directory.
Simply change the styles applied to a particular widget, if you want to.
The thing is, you don’t know how the widget generates its output. It could be using any function (not necessarily wp_nav_menu), and it can change at any time. So don’t try to affect widget HTML.Simply change the styles applied to a particular widget, if you want to.
So to confirm you understand my question, if a menu widget being placed in a widget area prints HTML like
<div id="menu1" class="container"> <ul> <li>item 1</li> <li>item 2</li> </ul> </div>
And I want the output to not have a class applied to the container so it’s more like
<div id="menu1"> <ul> <li>item 1</li> <li>item 2</li> </ul> </div>
`
That it’s impossible to change this using a PHP function?
I would like to avoid using jquery for this, because jquery will be executed after the page has loaded, and this will affect the user experience to have the appearance of
<div>
objects spontaneously change after the web page has finished loading in the web browser.- This reply was modified 3 years, 9 months ago by desbest.
You don’t understand my question.
Note the 2 lines I commented out.
//'before_widget' => '<li id="%1$s" class="widget-container %2$s">', //'after_widget' => '</li>',
These come from the wp_nav_menu() function, not the register_sidebar() function.
since your code is concerning widget areas, but you are asking about menu widgets.
It appears that you have not considered that when making wordpress themes, that there is a distinction between using wp_nav_menu() to print a menu onto a page in a template php file, and instead printing a menu by having it appear in a widget area. However the customisation parameters available for wp_nav_menu() which is listed in wordpress documentation, I need some of them available for the latter.
The menu appears in the widget AREA. Using the customise themes feature in wordpress, you can choose what menus appear in each widget AREA.
I already know how to add a menu to a widget area. I am asking how to remove the container div from the HTML output that would be executed on the web page from such a thing.
- This reply was modified 3 years, 9 months ago by desbest.
Forum: Plugins
In reply to: [Contact Form 7] Plugins that extend Contact Form 7The sidebar says the category has 14 but I only see 7. Should there be a next page link?
But then I would lose the styling of the theme if I did that. The theme would look worse and be not usable. I am editing themes made years ago to improve them. The themes I’m editing are using
foreach ($comments as $comment)Does anyone know how to do threaded comments when the comments are being printed with a foreach loop?
If I have an example as a starting point, I should then know how to add threaded comments to existing themes which use foreach to print comments.
I’ve seen 2 tutorials online that use wp_list_comments() and they are not helpful for me because the themes I’m editing don’t use that.
- This reply was modified 4 years, 9 months ago by desbest.
Forum: Requests and Feedback
In reply to: The Theme Directory Search engine doesn’t find all the themesI found the theme which is good but the search looks for an exact match of the name.
Thank you.Forum: Requests and Feedback
In reply to: The Theme Directory Search engine doesn’t find all the themesI searched for “dark mess mirrored” just now and no results came up.
Forum: Everything else WordPress
In reply to: How do I specifiy the table prefix when using wp-load.php?I found out what the problem was. I included the required WordPress code, before my config.php database connect code, and now it works.
Forum: Fixing WordPress
In reply to: index.php is blank! what do i do?I disabled and then deleted all the plugins and then uploaded them all again and now it works. Thanks alot.
Forum: Themes and Templates
In reply to: How do I add “View next topic” into my wordpress templateI did see that Michael.
I just helped the codex by filling in an empty one too.Forum: Themes and Templates
In reply to: How do I add “View next topic” into my wordpress templateI solved the problem by searching for the words. next inside your website.
I also filled up an empty page for y’all.
https://codex.www.ads-software.com/next_posts_link
See, I placed the words on that page