• Hello, tell me how you can set the background color of blog entries in the theme OceanWP !? Just for widgets, I found and put the background color https://yadi.sk/i/7BuPs_xsjY_jbw, but I can’t find it for the blog, tell me how to implement it!? I tried to go to the address “Settings ▸ Blog ▸ Blog entries” but there is nothing on the choice of color!?

    • This topic was modified 5 years, 5 months ago by slypro.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 46 through 60 (of 103 total)
  • Hello,

    To achieve this, you need to create a custom elementor template under the Theme Panel > my Library. Design it as per your need.
    After that, go to Customize > Footer widget and select the newly created template. Also, remove the container and set padding to zero from this customizer section.

    Thread Starter slypro

    (@slypro)

    This is how I understand need to use “Elementor” !? But there is not much there yet, most likely need to install the full version of the pro!?
    I also wanted to ask if you can somehow change the icons in front of the author, dates, headings, comments http://prntscr.com/nh3dr2

    Thread Starter slypro

    (@slypro)

    And tell me, is it possible to fix side widgets when scrolling, as it is done with the menu? This can be done separately or through the paid plugin?

    To change the meta icons, install and activate the child theme. Now copy the oceanwp > partials > entry - meta.php and oceanwp > partials > single - meta.php file into the child theme. Open it using a code editor and add your icon class to change it.

    Try to use Q2W3 fixed widget plugin if Stick Anything plugin is not working to stick the sidebar widgets.

    Thread Starter slypro

    (@slypro)

    With widgets everything turned out after installing the plugin! Thank you!
    But with the icons, I do not understand how to do all this? How to install and activate a child theme, do I need to install another theme or reinstall it!? Now I went to the addresses
    oceanwp > partials > entry – meta.php and
    oceanwp > partials > single – meta.php
    when opening files saw the php-code http://prntscr.com/nikv8c and http://prntscr.com/nikw01. Where exactly will it be more correct to insert the code until I understand!?

    • This reply was modified 5 years, 4 months ago by slypro.

    Here is the OceanWP child theme – https://docs.oceanwp.org/article/90-sample-child-theme

    Just copy the meta.php file and edit the icon class or remove it as per your need. For example edit the <i class="icon-user"</i> for the author with your icon class.

    Thread Starter slypro

    (@slypro)

    According to your link I can not find the file “meta.php” !?
    Tell me, is it not necessary to use the file “simple-line-icons.min.css”? Just noticed that the icons are listed in it: http://prntscr.com/niozgb

    You will see meta.php file inside the parent oceanwp theme. Copy it into the child theme. If you disable simple line icons, then there is no icon for metadata and more places.

    Thread Starter slypro

    (@slypro)

    During the transition, I see the following files: http://prntscr.com/niw4zi if I download, then only they, there is no file “meta.php” !?

    Thread Starter slypro

    (@slypro)

    We also talked to you about the headlines, yes it is displayed, but it’s impossible to display it as well as on all pages. You wrote that you need to add CSS, tell me how it can be done correctly!?

    Thread Starter slypro

    (@slypro)

    In the file, added lines,

    function prefix_add_page_title() {
        if ( is_page() ) {
            echo get_the_title();
        }
    }
    add_action('ocean_before_page_entry','prefix_add_page_title'); 

    the title is displayed but does not is displayed to him the design (http://newsitetest.ru/?page_id=50), as i he wrote to you earlier! To make the headline look like the heading in posts… Tell me how to add CSS code to these lines!?

    • This reply was modified 5 years, 4 months ago by slypro.
    • This reply was modified 5 years, 4 months ago by slypro.
    • This reply was modified 5 years, 4 months ago by slypro.

    Try using the below code instead of the previous one and let me know it works or not –

    function prefix_add_page_title() {
        if ( is_page() ) {
            echo '<h2 class="single-post-title entry-title" itemprop="headline">' . get_the_title(); . '</h2>';
        }
    }
    add_action('ocean_before_page_entry','prefix_add_page_title');
    Thread Starter slypro

    (@slypro)

    I inserted the code, but it shows an error http://prntscr.com/nk8mv6 when updating the page, also error http://prntscr.com/nk8nvm!

    • This reply was modified 5 years, 4 months ago by slypro.

    Use the below code instead of the old one –

    function prefix_add_page_title() {
        if ( is_page() ) {
    		$title = get_the_title();
            echo '<h2 class="single-post-title entry-title" itemprop="headline">'. $title .'</h2>';
        }
    }
    add_action('ocean_before_page_entry','prefix_add_page_title');
    Thread Starter slypro

    (@slypro)

    Thank you! I added a few styles and everything turned out!

Viewing 15 replies - 46 through 60 (of 103 total)
  • The topic ‘OceanWP blog background color’ is closed to new replies.