lup0z
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Adding class to menu items doesnt' workI tried adding an echo ‘AAA’; at the beginning of the function but nothing happened so I suppose there’s a problem with the hook
Forum: Themes and Templates
In reply to: Adding class to menu items doesnt' workThank you Vipin ??
Unfortunately I work with XAMMP!Forum: Hacks
In reply to: wp.media events listResolved.
My fault.
The line is: custom_uploader.on(‘select’, function() {Where can I find an exhaustively wp.media object API?
Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elements@andrew that’s obvious.
@alchymyth thank you but I took a look at the WP API and it seems I can’t add code to list elements, just before or after the widget or the title.
What I’m going to add this time is a fontawesome icon so<i class="fa fa-icon"></i>
but it will occur in the future for any different elements for sure
Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elementsThe function dynamic_sidebar() is in the core file wp-includes/widgets.php. You should not modify this file!!
You should stick to coding your own PHP in a widget.
Yes, I know….and we’re at the start of the topic again: what if I want to put PHP code or HTML before every list element???
Not styling the widget with CSS.
Not putting HTML code in a single or different widget (so not a text-widget).
Just putting new code before every widget LIST ELEMENT.Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elementsYeah I checked it but it just runs this:
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- #secondary --> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elementsOk, I really thank you for your kind suggestions but that’s not what I’m searching for.
What I need is to know which are the files that calculate and generate the sidebar or better: which files are used at the call of get_sidebar() function?Thank you!
Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elementsI mean, adding even more HTML code or editing the PHP that generates list elements.
Forum: Fixing WordPress
In reply to: Customizing twentytwelve sidebar elementsI thank you vtxyzzy but the problem isn’t the styling but to edit the side bar like adding an element or a paragraph or anything else near the sidebar voices.
For example: a leaf before the list elementForum: Fixing WordPress
In reply to: Fatal error: Call to undefined function current_theme_supportsI really thank you for your suggestions.
Everything you told me was good to fix the problem.Hope this thread will help anybody with the same issues!
Forum: Fixing WordPress
In reply to: How to save contents for a new installationThank you Ross.
Just to make me know if I understood:
I’m going to re-install a new WP website in a new directory, then I’ll link the new site to the old DB (wp-config.php and I think I should edit the DB directly because the DB will point to the old WP directory).Then I’ll copy media files (wp-content/uploads) to the new WP directory.
Does this will restore the old content to the new WP website?
Forum: Fixing WordPress
In reply to: How to save contents for a new installationThank you Ross.
Does this will include all images, media files and their positions?Forum: Localhost Installs
In reply to: WP keeps on aiming for localhostYeah, you were right.
I fixed it directly on the database but I think that’s the same using the admin panel as you told me.
Thank you for your support!Paulwpxp, thank you so much for your suggestion.
I didn’t use it but it allows me to research and find out that editing the wp_option table on the DB, I can edit the website URL and it works fine!Thank you so much!
Thank you for your reply.
In the header.php file, the stylesheets are loaded by <?php wp_head(); ?>
so it’s dynamically added.
The error came from my upload of the whole website from local to web because I mainly work on localhost with XAMPP.How can I see how the wp_head() takes the CSS files to fix it?
Anyway, another question came to me: if the style.CSS file is loaded dynamically and the URL is wrong, how can I see the styling even in browsers?
It sounds odd.