So, this is how I did it and it works.
<?php $url = $_SERVER["REQUEST_URI"];
if (strpos($url, "/ru/")) {
$div_id = "logo_top_ru" .$contnet;
}else {
$div_id = "logo_top_en" .$contnet;
}
?>
<div id="<?php echo $div_id ?>"></div>
Enjoy
Related Posts:
- Changing footer depending on URL (poli language site)
- Auto get_header and get_footer on every template?
- HowTo: Add Class to Sidebar Widget List-Items
- How to wrap the widget content with a div or get the widget title outside?
- Add class to before_widget for all widgets with a dropdown and a counter
- How to get the name and description of a sidebar in theme?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How the WordPress sidebar works
- Can not Remove Archives and Meta from Sidebar
- How to allow admins to create a sidebar from the admin
- How do I display the “Archives” widget layout (sidebar) in WordPress by ‘year’ then by ‘months’?
- How can a Theme Contain no Header File or Footer File?
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How can I customize wp_footer, where is the code that controls what this function does?
- how can I remove the sidebar from my wp homepage [closed]
- Toggle Sidebar Display
- searchform.php override not working
- Custom URL parameters in template files
- Edit footer via customizer
- Storing the contents from txt file into The_Contents”
- WordPress Unite Theme: Footer isn’t sticking [closed]
- Displaying details of a post in a sidebar
- Why am I getting a white screen without a slash at the end of the address?
- “Theme without sidebar.php is deprecated”
- Load sidebar template just once to prevent multiple animations
- How to change footer or for different kinds of users in wordpress?
- ACF Pro make URL Linked in Custom Template [closed]
- Issue On Displaying Pages with Post Name Permalink
- How is the `get_sidebar` function meant to be used to call a 2nd sidebar?
- Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?
- How can I hard code my sidebar?
- Should is_active_sidebar() always be used around dynamic_sidebar()?
- Load different single.php templates according to post layout selection
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- How to add sidebar to Isola theme? [closed]
- Allow different tags in widget titles
- Change the sidebar from left to right twentyfourteen theme
- Recommended sidebar / content widths
- Hide/disable sidebar using shortcode?
- How to setup sidebar modules to use jQuery Accordian
- get main URL from subdirectory with php
- Sidebar not displaying (theme development)
- how to change footer content for certain pages only
- Cold Fusion to WordPress
- Display problems in admin dashboard when creating a new theme from scratch
- Correct (and secure) way to escape url when using href attribute
- Undefined index: custom_sidebars
- Best strategy for providing theme options using customizer
- Creating a Playlist of Widgets
- How to display only some widgets of a sidebar?
- get_footer not working boilerplate theme
- How to Remove Sidebar when get_sidebar() is not get called in page?
- WordPress two sidebar layout or theme
- Conditional tags issue for multiple is_page() conditions in sidebar.php
- How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?
- Incorrect sidebar showing on WooCommerce Store page [closed]
- Replacing static code in a template file with a sidebar and widgets?
- how can i modify the default wordpress sidebar
- annoying “Confirm Form Resubmission” message
- Different templates for each category level
- Import settings from another theme
- Load multiple css simultaneously using functions.php
- How to fix a conflict cause by my theme with Woocommerce and/or Gravity Forms?
- Responsive Images with art direction
- bbPress: modifying template for forum index
- control posts order by select option
- Testing localhost WordPress site over LAN with iPad, iPhone
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Correct form of escaping and localization – functions.php breadcrumbs
- What are entry.php and its appendix files and is it safe to delete them in a most miniaml site?
- Necessary css classes to be included in theme stylesheet
- How to link post image to post link?
- Local theme changes upload on server but theme changes not showing
- overlay post title over post’s featured image
- WooCommerce – edit templates
- Media & Plugin screens stall
- I updated my own theme’s code and css
- How to include all files within a folder & its sub folders to functions.php?
- Group several custom global page templates in sub-folder
- Editing Them with Child Theme Basics [closed]
- Get property of non-object on theme activation
- How do I build a WordPress Profile/Author Header?
- Theme option page doesn’t save options
- change wordpress website logo url [duplicate]
- Problem with Displaying Custom Theme Page’s Content
- How to know and change the machine name of a menu?
- Need help with adding custom wordpress menu and sub-menu
- What is the general function to add a Widget area (not of a particular type)?
- Custom page template not showing on page creation
- get currently showed author ID in theme functions.php
- WordPress Post Order
- WordPress Custom font not found
- Code showing in wordpress post titles around website
- WordPress uploads do not show up and I see the white screen of death in some cases
- Why content is not adding for each blog post
- How do I control the header space in non-front pages in Twenty Seventeen?
- register_theme_directory() sees custom themes directory, but blank frontend
- Customizer Image-Picker Preview Not Working
- How to customize the colors within a stylesheet using a WordPress setting
- How can i create my Onepage smoothscrool WordPress theme?