• Resolved mustaafizbd

    (@mustaafizbd)


    I want to insert texts before the featured image in single post. This text will be like affiliate disclosure. Are there any PHP code functions or another easy way to add text in blocksy theme single post?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @mustaafizbd

    The easiest method to achieve this would be to use the Content Blocks feature of Blocksy Pro. With this feature, you can insert any kind of content, dynamically, throughout your website.

    Here’s our documentation article on this feature — https://creativethemes.com/blocksy/docs/extensions/content-blocks/

    Hope this helps.
    Thanks!

    Thread Starter mustaafizbd

    (@mustaafizbd)

    Actually, I am a web developer and I got this query from my many clients. I have tried to insert code using functions.php but it is not working anyway.
    So there is no option without the pro version!

    Hello @mustaafizbd

    Every theme out there has its own conventions of hooks available. This is just normal behaviour and a snippet of code is not required to work on all setups out there.

    What code have you tried inserting exactly? It would help shed some light on why it doesn’t work.

    Thanks.

    Thread Starter mustaafizbd

    (@mustaafizbd)

    function add_before_content($content) {
     return 'Before content area '.$content;
    }
    add_filter('the_content', add_before_content);
    

    It is working and inserting text in starting on the single post. But I want to add text before or after the featured image.

    Hello @mustaafizbd

    Well… the content area contains all of the content of the page, so it is expected for this to happen.

    In your case, we recommend using the built in Blocksy Pro Content Blocks feature to achieve this, as it would be the easiest method.

    Thanks.

    Thread Starter mustaafizbd

    (@mustaafizbd)

    You said it before.
    This theme is not recommended for small affiliate marketers who can’t purchase pro. Because customization is not easy.

    Hello @mustaafizbd

    What do you mean that customisation is not easy? No other free theme that I know of will let you achieve this advanced layout without upgrading to their premium version, or using a third party solution.

    I’m not sure where you’re coming from here, but this business model is followed by a lot of successful developers and their success stories are always positive. It is perfectly normal that a free version of a product would have limitations in terms of its features. That’s how the majority of the software works like.

    Sorry, but that’s how things are.
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Insert text before featured image’ is closed to new replies.